pablorsk/argentina-data-validator

Argentina data validator for CUIT and CBU numbers

0.0.2 2018-09-14 02:32 UTC

This package is auto-updated.

Last update: 2022-11-14 14:47:56 UTC


README

Validate Argentina CBU and CUIT/CUIL

Installation

Add the ArgentinaDataGenerator library to your composer.json file:

composer require pablorsk/argentina-data-validator

Usage

Without framework

<?php
echo \ArgentinaDataValidator\Cuit::isValid(20305423174)) ? 'valido' : 'no valido';  // valido

Laravel

<?php
public function store(Request $request)
{
    $validatedData = $request->validate([
        'cuit' => 'cuit',
    ]);

    // The entity post is valid...
}