Skip to content

Commit dbb1147

Browse files
committed
Readme fix
1 parent 32a2b34 commit dbb1147

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

README.md

+14-7
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,21 @@
11
# php-validation
22
PHP Validation class inspired by the jQuery Validation Plugin (http://jqueryvalidation.org/)
33

4-
## Description
4+
Description
5+
------------
56

67
I created this library to use along with *jQuery Validation Plugin*.
78

89
It allows to use the same (or similar) rules used for *jQuery Validation Plugin* implementation in the client side to validate the request in the server side.
910

10-
## Instalation
11+
Installation
12+
------------
1113

12-
composer - add the package to the require section in your composer.json file:
14+
Install using [composer](http://getcomposer.org/). Exists as
15+
[eclemens/php-validation](https://packagist.org/packages/eclemens/php-validation)
16+
in the [packagist](https://packagist.org/) repository.
17+
18+
Add the package to the require section in your composer.json file:
1319

1420
```json
1521
{
@@ -19,7 +25,8 @@ composer - add the package to the require section in your composer.json file:
1925
}
2026
```
2127

22-
## Usage
28+
Usage
29+
-----
2330

2431
### Basic standalone usage
2532

@@ -53,7 +60,6 @@ if ($validator->valid($data)) {
5360
// It's a valid data!
5461
}
5562

56-
?>
5763
```
5864

5965
### Usage along with *jQuery Validation Plugin*
@@ -103,8 +109,9 @@ if ($validator->valid($_REQUEST)) {
103109
// It's a valid data!
104110
}
105111

106-
?>
107112
```
108113

109-
## TODO
114+
TODO
115+
-------
116+
* Missing additional rules
110117
* i18n

0 commit comments

Comments
 (0)