Skip to content

pezzetti/ie-validator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Validador de Inscrição Estadual / IE validator

Build Status codecov Total Downloads

PHP library for validating and printing Inscrição Estadual (IE) for brazilian states

Requirements

  • v1.0.0 -> PHP >= 5.6
  • v2.0.0 -> PHP >= 7

Instalation

With Composer:

PHP 7

composer require pezzetti/ie-validator

PHP 5.6

composer require pezzetti/ie-validator:1.0.0

Usage

require_once __DIR__ . '/vendor/autoload.php';

use Pezzetti\InscricaoEstadual\Util\Validator;
use Pezzetti\InscricaoEstadual\Util\Mask;
use Pezzetti\InscricaoEstadual\Util\States;

Validator::check(States::SP,'231.247.190.013');

Mask::getIEForUF(States::SP,'241205090864');