PHP code example of pauloalmeidasilva / cpfcnpj-validation
1. Go to this page and download the library: Download pauloalmeidasilva/cpfcnpj-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/ */
pauloalmeidasilva / cpfcnpj-validation example snippets
Src\Cpf;
var_dump(Cpf::validate('986.454.880-86'));
Src\Cnpj;
var_dump(Cnpj::validate('64.123.337/0001-79'));