pablorsk / argentina-data-validator
Argentina data validator for CUIT and CBU numbers
Installs: 19 300
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 1
Open Issues: 0
Requires
- php: >=7.1
Requires (Dev)
- codedungeon/phpunit-result-printer: 0.19.10
- orchestra/testbench: 3.4.*|3.5.*|3.6.*
- phpunit/phpunit: 7.2.6
- reyesoft/ci: 1.0.5
- sebastian/phpcpd: 4.0.0
- squizlabs/php_codesniffer: 3.3.0
This package is auto-updated.
Last update: 2024-12-14 19:24:59 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...
}