summaryrefslogtreecommitdiff
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
parent037f2f0dba509bbfbd96efb8810e6a2e13295c3d (diff)
Update namespaces
-rw-r--r--README.md8
-rw-r--r--src/Bouncer.php6
2 files changed, 8 insertions, 6 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.
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