pixelavengers / extra-validator-bundle
This bundle provides some useful extra validators
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 15
Watchers: 2
Forks: 1
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.3.2
- symfony/symfony: 2.0.*
This package is not auto-updated.
Last update: 2024-11-17 03:31:33 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(),
);
}