PHP code example of empari / validation
1. Go to this page and download the library: Download empari/validation 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/ */
empari / validation example snippets
'providers' => [
...
Empari\Validation\ValidationServiceProvider::class,
],
echo app('validation.cnpj')->validate('66.204.558/0001-05');
echo app('validation.cpf')->validate('628.786.185-13');
echo app('validation.cnpjcpf')->validate('62878618513');
echo app('validation.credit_card')->validate('5502232564641117');
echo app('validation.insc_estadual')->validate('pr', '70.103.83.63-8');