pixelavengers / extra-validator-bundle
This bundle provides some useful extra validators
Package info
github.com/ricardclau/PixelavengersExtraValidatorBundle
Type:symfony-bundle
pkg:composer/pixelavengers/extra-validator-bundle
dev-master
2012-03-22 20:37 UTC
Requires
- php: >=5.3.2
- symfony/symfony: 2.0.*
This package is not auto-updated.
Last update: 2026-03-08 09:32:07 UTC
README
Welcome to Pixelavengers Extra Validator Bundle. This bundle provides some useful validators for common website cases.
Current validators:
WorldWide
- CreditCard, both generic and specific validators for: Visa, Mastercard, American Express, Discover, JCB, Diners
- CVV
Spain
- ESSeguridadSocial identifiers for public health system
- ESPhoneNumber, both mobile and fixed
France
- FRSocialSecurity identifiers for public health system (thx to npotier)
Installation
Download via git submodule
git submodule add git://github.com/ricardclau/PixelavengersExtraValidatorBundle.git vendor/bundles/Pixelavengers/Bundle/ExtraValidatorBundle
Download by editing deps file
[PixelavengersExtraValidatorBundle]
git=http://github.com/ricardclau/PixelavengersExtraValidatorBundle.git
target=/bundles/Pixelavengers/Bundle/ExtraValidatorBundle
version=origin/master
Modify autoload.php and instantiate bundle in AppKernel.php
// app/autoload.php
$loader->registerNamespaces(array(
// ...
'Pixelavengers' => __DIR__.'/../vendor/bundles',
));
public function registerBundles()
{
$bundles = array(
// ...
new Pixelavengers\Bundle\ExtraValidatorBundle\PixelavengersExtraValidatorBundle(),
);
}