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 (2 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 1 All time: 9,717 This week: 310Up
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  
Name: Thiago Przyczynski <contact>
Classes: 8 packages by
Country: Brazil Brazil
Age: 30
All time rank: 3801309 in Brazil Brazil
Week rank: 166 Up4 in Brazil Brazil Up
Innovation award
Innovation award
Nominee: 3x

 

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

  Files folder image Files  /  src  
File Role Description
Files folder imagelang (2 directories)
  Plain text file Cnpj.php Class Class source
  Plain text file CnpjServiceProvider.php Class Class source

  Files folder image Files  /  src  /  lang  
File Role Description
Files folder imageen (1 file)
Files folder imagept-BR (1 file)

  Files folder image Files  /  src  /  lang  /  en  
File Role Description
  Accessible without login Plain text file validation.php Aux. Auxiliary script

  Files folder image Files  /  src  /  lang  /  pt-BR  
File Role Description
  Accessible without login Plain text file validation.php Aux. Auxiliary script

  Files folder image Files  /  tests  
File Role Description
  Plain text file CnpjTest.php Class Class source
  Plain text file TestCase.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:1
This week:0
All time:9,717
This week:310Up