PHPackages                             undanet/extra-validator-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Validation &amp; Sanitization](/categories/validation)
4. /
5. undanet/extra-validator-bundle

ActiveSymfony-bundle[Validation &amp; Sanitization](/categories/validation)

undanet/extra-validator-bundle
==============================

Symfony2 Validators for Spain Postcodes and Personal identifications

0163PHP

Since Jun 9Pushed 10y ago4 watchersCompare

[ Source](https://github.com/undanet/ExtraValidatorBundle)[ Packagist](https://packagist.org/packages/undanet/extra-validator-bundle)[ RSS](/packages/undanet-extra-validator-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

ExtraValidator bundle for Symfony2
==================================

[](#extravalidator-bundle-for-symfony2)

This package contains a set of useful validators and asserts to use in your projects.

Included Asserts/Validators
---------------------------

[](#included-assertsvalidators)

- DNI (DNI/NIF documents)
- Phone (phone numbers, by regular expresions)
- MobilePhone (mobile phone numbers)
- PrefixedPhone (phone numbers with international prefix)

How to include ExtraValidator
-----------------------------

[](#how-to-include-extravalidator)

In your composer.json

```
"require": {
  "undanet/extra-validator-bundle": "dev-master"
}
```

... and in your `AppKernel.php` file:

```
