empari/validation

The Empari Validation package.

1.0.1 2017-07-25 14:45 UTC

This package is not auto-updated.

Last update: 2024-12-22 04:42:53 UTC


README

The Empari Validation package.

Installation

Composer

Execute the following command to get the latest version of the package:

composer require empari/validation

Laravel

In your config/app.php add Empari\Validation\ValidationServiceProvider::class to the end of the providers array:

'providers' => [
    ...
    Empari\Validation\ValidationServiceProvider::class,
],

Run commands for validation:

echo app('validation.cnpj')->validate('66.204.558/0001-05');
echo app('validation.cpf')->validate('628.786.185-13');
echo app('validation.cnpjcpf')->validate('62878618513');
echo app('validation.credit_card')->validate('5502232564641117');
echo app('validation.insc_estadual')->validate('pr', '70.103.83.63-8');