Welcome to Pixelavengers Extra Validator Bundle. This bundle provides some useful validators for common website cases.
Current validators:
- CreditCard, both generic and specific validators for: Visa, Mastercard, American Express, Discover, JCB, Diners
- CVV
- ESSeguridadSocial identifiers for public health system
- ESPhoneNumber, both mobile and fixed
- FRSocialSecurity identifiers for public health system (thx to npotier)
git submodule add git://github.com/ricardclau/PixelavengersExtraValidatorBundle.git vendor/bundles/Pixelavengers/Bundle/ExtraValidatorBundle
[PixelavengersExtraValidatorBundle]
git=http://github.com/ricardclau/PixelavengersExtraValidatorBundle.git
target=/bundles/Pixelavengers/Bundle/ExtraValidatorBundle
version=origin/master
// app/autoload.php
$loader->registerNamespaces(array(
// ...
'Pixelavengers' => __DIR__.'/../vendor/bundles',
));
public function registerBundles()
{
$bundles = array(
// ...
new Pixelavengers\Bundle\ExtraValidatorBundle\PixelavengersExtraValidatorBundle(),
);
}