From a0cbd0627babb31d4238b20e5303620e5c2b6cc3 Mon Sep 17 00:00:00 2001 From: Asko Nomm Date: Tue, 22 Feb 2022 23:53:02 +0100 Subject: Update namespaces --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 1cbda7f..408c44c 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,8 @@ An extensible validation library for your data with sane defaults. +![Bouncer](https://user-images.githubusercontent.com/84135165/155233016-1dd9990f-ed60-44cc-b44c-ea90a11fc350.jpg) + ## 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. -- cgit v1.2.3