diff options
| author | Asko Nomm <asko@bien.ee> | 2022-02-22 23:53:02 +0100 |
|---|---|---|
| committer | Asko Nomm <asko@bien.ee> | 2022-02-22 23:53:02 +0100 |
| commit | a0cbd0627babb31d4238b20e5303620e5c2b6cc3 (patch) | |
| tree | dd9cebf7ff947139d769133c03e57d4a71d61a45 /README.md | |
| parent | 037f2f0dba509bbfbd96efb8810e6a2e13295c3d (diff) | |
Update namespaces
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 8 |
1 files changed, 5 insertions, 3 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. |
