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: 9 | All time: 11,407 This week: 673 |
Version | License | PHP version | Categories | |||
cnpj-validator 0.0.1 | 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 company tax id with Laravel. |
A Laravel package to work with CNPJ validation.
CNPJ is the National Reistry of Legal Entities in Brazil.
` composer install thiagoprz/cnpj-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' => 'cnpj', // CNPJ validation
...
]);
...
}
...
}
Files (9) |
File | Role | Description | ||
---|---|---|---|---|
src (2 files, 1 directory) | ||||
tests (2 files) | ||||
composer.json | Data | Auxiliary data | ||
phpunit.xml | Data | Auxiliary data | ||
README.md | Doc. | Read me |
Files (9) | / | src |
File | Role | Description | ||
---|---|---|---|---|
lang (2 directories) | ||||
Cnpj.php | Class | Class source | ||
CnpjServiceProvider.php | Class | Class source |
Files (9) | / | tests |
File | Role | Description |
---|---|---|
CnpjTest.php | Class | Class source |
TestCase.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.