Recommend this page to a friend! |
Download |
Info | Documentation | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not enough user ratings | Total: 30 | All time: 11,119 This week: 63 |
Version | License | PHP version | Categories | |||
cpfcnpj-validator 1.0 | MIT/X Consortium ... | 5 | PHP 5, Validation |
Description | Author | |
This package can validate CPF and CNPJ tax pay numbers in Brazil. |
A Laravel package to work with CNPJ validation.
CPF is an individual taxpayer identification number given to people living in Brazil, both native Brazilians and resident foreigners.
CNPJ is the National Registry of Legal Entities in Brazil.
` composer install thiagoprz/cpfcnpj-validator
`
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class CnpjController extends Controller
{
...
/
* Store action
*/
public function store(Request $request)
{
$this->validate($request, [
'cnpj' => 'cpfcnpj', // CPF/CNPJ validation
...
]);
...
}
...
}
Files (7) |
File | Role | Description | ||
---|---|---|---|---|
src (2 files, 1 directory) | ||||
composer.json | Data | Auxiliary data | ||
README.md | Doc. | Read me |
Files (7) | / | src |
File | Role | Description | ||
---|---|---|---|---|
lang (3 directories) | ||||
CpfCnpj.php | Class | Class source | ||
CpfCnpjServiceProvider.php | Class | Class source |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
Install with Composer |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.