Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 1.06 KB

readme.md

File metadata and controls

36 lines (27 loc) · 1.06 KB

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');