https://github.com/alceanicu/cif
PHP validation for Romanian VAT code (Validare PHP pentru CIF | CUI)
https://github.com/alceanicu/cif
cif cui php php-validation romanian-vat
Last synced: about 1 month ago
JSON representation
PHP validation for Romanian VAT code (Validare PHP pentru CIF | CUI)
- Host: GitHub
- URL: https://github.com/alceanicu/cif
- Owner: alceanicu
- License: mit
- Created: 2016-12-28T13:37:24.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2020-02-27T08:29:58.000Z (about 6 years ago)
- Last Synced: 2025-10-26T19:54:48.560Z (5 months ago)
- Topics: cif, cui, php, php-validation, romanian-vat
- Language: PHP
- Homepage:
- Size: 36.1 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/alceanicu/cif) [](https://packagist.org/packages/alcea/cif) [](https://packagist.org/packages/alcea/cif) [](https://packagist.org/packages/alcea/cif) [](https://scrutinizer-ci.com/g/alceanicu/cif/?branch=master)
# CIF
PHP validation for Romanian VAT code (Validare PHP pentru CIF/ CUI)
# How to install?
### 1. use composer
```php
composer require alcea/cif
```
### 2. or, edit require section from composer.json
```
"alcea/cif": "^1.1"
```
# How to use?
```php
isValid() ? 'valid' : 'invalid' ) . PHP_EOL;
// or
echo "CIF {$cifToBeValidated} is " . ( Cif::validate($cifToBeValidated) ? 'valid' : 'invalid' ) . PHP_EOL;
```
# How to run tests?
```
## Open an terminal and run commands:
git clone https://github.com/alceanicu/cif.git
cd cif
composer install
./vendor/bin/phpunit --bootstrap ./vendor/autoload.php --testdox
```
## License
This package is licensed under the [MIT](http://opensource.org/licenses/MIT) license.