Last Updated | | Ratings | | Unique User Downloads | | Download Rankings |
2021-06-25 (2 months ago) | | Not yet rated by the users | | Total: 22 | | All time: 10,337 This week: 259 |
|
Description | | Author |
This package can validate CPF and CNPJ tax pay numbers in Brazil.
It provides the implementation of rules to validate tax payer numbers of Brazilian citizens and companies.
Application controllers need to pass a HTTP request object to the package so it can take the CPF or CNPJ values to verify if the values are correct. | |
|
|
Innovation award
Nominee: 6x |
|
Details
CPF/CNPJ Validator
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.
Installation
` composer install thiagoprz/cpfcnpj-validator
`
Usage
<?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
...
]);
...
}
...
}
|
Applications that use this package |
|
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.