PHP code example of ricardonavarrom / vatin-validator-bundle
1. Go to this page and download the library: Download ricardonavarrom/vatin-validator-bundle library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
ricardonavarrom / vatin-validator-bundle example snippets
bash
// in AppKernel::registerBundles()
$bundles = array(
// ...
new ricardonavarrom\VATINValidatorBundle\VATINValidatorBundle(),
// ...
);
bash
// src/AppBundle/Entity/Customer.php
namespace AppBundle\Entity;
use ricardonavarrom\VATINValidatorBundle\Validator\Constraints\VATINEsConstraint;
class Customer
{
/**
* @VATINEsConstraint(
* allowLowerCase = false,
* validationModality = "NIF"
* )
*/
private $vatin;
}