PHP Classes

File: README.md

Recommend this page to a friend!
  Classes of Thiago Przyczynski  >  PHP Validate CNPJ  >  README.md  >  Download  
File: README.md
Role: Documentation
Content type: text/markdown
Description: Read me
Class: PHP Validate CNPJ
Validate Brazilian company tax id with Laravel
Author: By
Last change:
Date: 2 years ago
Size: 559 bytes
 

Contents

Class file image Download

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
            ...
        ]);
        ...
    }
    ...
}
For more information send a message to info at phpclasses dot org.