overdesign / cif-generator
Spanish CIF number generator
Installs: 8 173
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: ^7.3 || ^8.0
Requires (Dev)
- phpunit/phpunit: ^9.6
- ronanguilloux/isocodes: ^2.1
- squizlabs/php_codesniffer: ^3.2
This package is auto-updated.
Last update: 2024-12-12 14:31:55 UTC
README
Spanish CIF number generator
This is a simple library for generating valid spanish CIF (VAT) numbers
Installation
Install using composer
composer require overdesign/cif-generator
Usage
scru You can generate CIF numbers in two ways:
1 - via static method
<?php use Overdesign\CifGenerator\Cif; echo Cif::generate();
2 - via object instance
<?php use Overdesign\CifGenerator\Cif; $cifGenerator = new Cif(); echo $cifGenerator->get();