summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorAsko Nomm <asko@bien.ee>2022-02-22 23:53:02 +0100
committerAsko Nomm <asko@bien.ee>2022-02-22 23:53:02 +0100
commita0cbd0627babb31d4238b20e5303620e5c2b6cc3 (patch)
treedd9cebf7ff947139d769133c03e57d4a71d61a45 /README.md
parent037f2f0dba509bbfbd96efb8810e6a2e13295c3d (diff)
Update namespaces
Diffstat (limited to 'README.md')
-rw-r--r--README.md8
1 files changed, 5 insertions, 3 deletions
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.