https://github.com/seferov/requestvalidatorbundle
Symfony Validator Request params with annotations
https://github.com/seferov/requestvalidatorbundle
bundle php symfony symfony-bundle
Last synced: 9 months ago
JSON representation
Symfony Validator Request params with annotations
- Host: GitHub
- URL: https://github.com/seferov/requestvalidatorbundle
- Owner: seferov
- License: mit
- Created: 2016-06-17T06:52:07.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2022-01-12T08:37:23.000Z (about 4 years ago)
- Last Synced: 2025-01-27T12:14:33.506Z (about 1 year ago)
- Topics: bundle, php, symfony, symfony-bundle
- Language: PHP
- Homepage:
- Size: 37.1 KB
- Stars: 9
- Watchers: 4
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Symfony RequestValidatorBundle
==============================
[](https://travis-ci.org/seferov/RequestValidatorBundle)
# Usage
```php
getErrors();
// You can get the request value with `get($path)` method
$email = $requestValidator->get('email');
// ...
}
}
```
# Installation
Step 1: Download the Bundle
---------------------------
Open a command console, enter your project directory and execute the
following command to download the latest stable version of this bundle:
```bash
$ composer require seferov/request-validator-bundle
```
This command requires you to have Composer installed globally, as explained
in the [installation chapter](https://getcomposer.org/doc/00-intro.md) of the Composer documentation.
Step 2: Enable the Bundle
-------------------------
Then, enable the bundle by adding it to the list of registered bundles
in the `app/AppKernel.php` file of your project:
```php