PHP Classes
elePHPant
Icontem

PHP Validate CNPJ: Validate Brazilian company tax id with Laravel

Recommend this page to a friend!
  Info   View files Documentation   View files View files (9)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2019-07-19 (15 days ago) RSS 2.0 feedNot yet rated by the usersTotal: Not yet counted Not yet ranked
Version License PHP version Categories
cnpj-validator 0.0.1MIT/X Consortium ...5PHP 5, Libraries, Validation
Description Author
This package is specific mainly for applications used in Brazil Brazil .

This package can be used to validate Brazilian company tax id with Laravel.

It provides one class that can validate a Brazilian company tax identifier numbers by performing a calculation that is verified against check digits.

The package also provides a Laravel service provide class, so the validation process can be integrated in Laravel applications.

  Performance   Level  
Innovation award
Innovation award
Nominee: 2x

 

Details

CNPJ Validator

A Laravel package to work with CNPJ validation.

CNPJ is the National Reistry of Legal Entities in Brazil.

Installation

` composer install thiagoprz/cnpj-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' => 'cnpj', // CNPJ validation
            ...
        ]);
        ...
    }
    ...
}
  Files folder image Files  
File Role Description
Files folder imagesrc (2 files, 1 directory)
Files folder imagetests (2 files)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file phpunit.xml Data Auxiliary data
Accessible without login Plain text file README.md Doc. Read me

 Version Control Unique User Downloads  
 100%
Total:0
This week:0