4nd114/littlecode

Package with basic functions

Installs: 5

Dependents: 0

Suggesters: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

Type:laravel

dev-master 2017-12-04 00:15 UTC

README

Little code

How to install

composer require 4nd114/littlecode
config/app.php

Set Provider 
Andre\LittleCode\LittleCodeServiceProvider::class,
config/app.php

Set aliases 
'LittleCode' => Andre\LittleCode\Facades\LittleCode::class,

Usage

Use LittleCode;

validate Name
LittleCode::NameValidator("Andre Luiz");

validate Cpf
LittleCode::CpfValidator("483.439.531-69"); OR LittleCode::CpfValidator("48343953169");

validate Cnpj
LittleCode::CnpjValidator("80.037.333/0001-24"); OR LittleCode::CnpjValidator("80037333000124");

Find Cep
LittleCode::FindCep("35182514"); OR LittleCode::FindCep("35182-514");