diff options
| -rw-r--r-- | README.md | 8 | ||||
| -rw-r--r-- | src/Bouncer.php | 6 |
2 files changed, 8 insertions, 6 deletions
@@ -4,6 +4,8 @@ An extensible validation library for your data with sane defaults. + + ## Installation You can install the package via composer: @@ -16,9 +18,9 @@ composer require askonomm/bouncer The Bouncer takes in an array of fields, an array of rules and optionally an array of validators. If no validators are provided, default validators will be used instead, which are: -- `Validators::len()` -- `Validators::email()` -- `Validators::required()` +- `\Askonomm\Bouncer\Validators\LenValidator` +- `\Askonomm\Bouncer\Validators\EmailValidator` +- `\Askonomm\Bouncer\Validators\RequiredValidator` The key of each item in the `$fields` array must correspond to the the key of each item in the `$rules` array, so that Bouncer would know how to connect the two to each other. diff --git a/src/Bouncer.php b/src/Bouncer.php index 9c16b52..0bfbdcb 100644 --- a/src/Bouncer.php +++ b/src/Bouncer.php @@ -14,9 +14,9 @@ use Askonomm\Bouncer\Validators\RequiredValidator; * rules and optionally an array of validators. If no validators * are provided, default validators will be used instead, which are: * - * - `Validators::len()` - * - `Validators::email()` - * - `Validators::required()` + * - `\Askonomm\Bouncer\Validators\LenValidator` + * - `\Askonomm\Bouncer\Validators\EmailValidator` + * - `\Askonomm\Bouncer\Validators\RequiredValidator` * * The key of each item in the `$fields` array must correspond to the * the key of each item in the `$rules` array, so that Bouncer |
