An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

Symfony RequestValidatorBundle
==============================

[![Build Status](https://travis-ci.org/seferov/RequestValidatorBundle.svg?branch=master)](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