|
1 | 1 | # Validation |
2 | 2 |
|
3 | | -[](https://github.com/odan/validation/releases) |
| 3 | +[](https://packagist.org/packages/selective/validation) |
4 | 4 | [](LICENSE.md) |
5 | | -[](https://travis-ci.org/odan/validation) |
6 | | -[](https://scrutinizer-ci.com/g/odan/validation/?branch=master) |
7 | | -[](https://packagist.org/packages/odan/validation/stats) |
8 | | - |
| 5 | +[](https://travis-ci.org/selective-php/validation) |
| 6 | +[](https://scrutinizer-ci.com/g/selective-php/validation/code-structure) |
| 7 | +[](https://scrutinizer-ci.com/g/selective-php/validation/?branch=master) |
| 8 | +[](https://packagist.org/packages/selective/validation/stats) |
9 | 9 |
|
10 | 10 | ## Requirements |
11 | 11 |
|
|
14 | 14 | ## Installation |
15 | 15 |
|
16 | 16 | ```shell |
17 | | -composer require odan/validation |
| 17 | +composer require selective/validation |
18 | 18 | ``` |
19 | 19 |
|
20 | 20 | ## Usage |
21 | 21 |
|
22 | 22 | Login example: |
23 | 23 |
|
24 | 24 | ```php |
25 | | -use Odan\Validation\ValidationResult; |
| 25 | +use Selective\Validation\ValidationResult; |
26 | 26 |
|
27 | 27 | // Get all POST values |
28 | 28 | $data = $request->getParsedBody(); |
@@ -54,7 +54,7 @@ if ($validation->isFailed()) { |
54 | 54 | This validation middleware catches the `ValidationException` exception and converts it into a nice JSON response: |
55 | 55 |
|
56 | 56 | ```php |
57 | | -use Odan\Validation\ValidationException; |
| 57 | +use Selective\Validation\ValidationException; |
58 | 58 |
|
59 | 59 | // Validation middleware |
60 | 60 | $app->add(function (Request $request, Response $response, $next) { |
|
0 commit comments