Recommend this page to a friend! |
Download .zip |
Info | Documentation | View files (10) | Download .zip | Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not enough user ratings | Total: 13 This week: 1 | All time: 11,246 This week: 571 |
Version | License | PHP version | Categories | |||
cpf-validator 1.0.0 | MIT/X Consortium ... | 5 | PHP 5, Libraries, Validation |
Description | Author | |
This package is specific mainly for applications used in Brazil .
This package can be used to validate Brazilian tax payer numbers with Laravel. |
A Laravel package to work with CPF validation.
CPF is an individual taxpayer identification number given to people living in Brazil, both native Brazilians and resident foreigners.
` composer install thiagoprz/cpf-validator
`
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class CpfController extends Controller
{
...
/
* Store action
*/
public function store(Request $request)
{
$this->validate($request, [
'cpf' => 'cpf', // CPF validation
...
]);
...
}
...
}
Files |
File | Role | Description | ||
---|---|---|---|---|
src (2 files, 1 directory) | ||||
tests (2 files) | ||||
composer.json | Data | Auxiliary data | ||
composer.lock | Data | Auxiliary data | ||
phpunit.xml | Data | Auxiliary data | ||
README.md | Doc. | Read me |
Files | / | src |
File | Role | Description | ||
---|---|---|---|---|
lang (2 directories) | ||||
Cpf.php | Class | Class source | ||
CpfServiceProvider.php | Class | Class source |
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.