2017 © Pedro Peláez
 

library cif

PHP validation for Romanian VAT code (Validare PHP pentru CIF | CUI)

image

alcea/cif

PHP validation for Romanian VAT code (Validare PHP pentru CIF | CUI)

  • Wednesday, December 28, 2016
  • by nicualcea
  • Repository
  • 1 Watchers
  • 1 Stars
  • 65 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Build Status Latest Stable Version Total Downloads License Scrutinizer Code Quality, (*1)

CIF

PHP validation for Romanian VAT code (Validare PHP pentru CIF/ CUI), (*2)

How to install?

1. use composer

composer require alcea/cif

2. or, edit require section from composer.json

"alcea/cif": "^1.1"

How to use?

<?php
# require __DIR__ . '\vendor\autoload.php';
use alcea\cif\Cif;

$cifToBeValidated = '159'; // without prefix digit (RO|R)
$cif = new Cif($cifToBeValidated);
echo "CIF {$cifToBeValidated} is " . ( $cif->isValid() ? 'valid' : 'invalid' ) . PHP_EOL;

// or

echo "CIF {$cifToBeValidated} is " . ( Cif::validate($cifToBeValidated) ? 'valid' : 'invalid' ) . PHP_EOL;

# How to run tests?, (*3)

## 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 license., (*4)

The Versions

28/12 2016

dev-master

9999999-dev https://github.com/alceanicu/cif

PHP validation for Romanian VAT code (Validare PHP pentru CIF | CUI)

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Niku Alcea

php cif cui validare

28/12 2016

v1.0

1.0.0.0 https://github.com/alceanicu/cif

PHP validation for Romanian VAT code (Validare PHP pentru CIF | CUI)

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Niku Alcea

php cif cui validare