2017 © Pedro Peláez
 

library cnp-php

Personal Identification Number (Cod Numeric Personal) validation

image

vimishor/cnp-php

Personal Identification Number (Cod Numeric Personal) validation

  • Monday, August 14, 2017
  • by vimishor
  • Repository
  • 1 Watchers
  • 1 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Personal Identification Number validation

Latest Version License Build Status Coverage Status Code quality, (*1)

PHP implementation of Personal Identification Number specification - draft 0.1, in order to validate Personal Identification Number of Romanian citizens and residents., (*2)

Install

Via Composer, (*3)

``` bash $ composer require vimishor/cnp-php, (*4)


## Usage ``` php use Gentle\Embeddable\Date; use Vimishor\Cnp\Checksum; use Vimishor\Cnp\Cnp; use Vimishor\Cnp\County; use Vimishor\Cnp\Gender; use Vimishor\Cnp\Serial; try { $cnp = Cnp::fromString('2791219470034'); } catch (\Vimishor\Cnp\Exception\InvalidCnpException $e) { // do something } // you can also instantiate everything yourself try { $cnp = new Cnp( new Gender(2), Date::fromString('1979-12-19T19:10:23+00:00'), new County(47), new Serial(003), new Checksum(4) ); } catch (\Vimishor\Cnp\Exception\InvalidCnpException $e) { // do something }

Testing

bash $ make test, (*5)

Contributing

Please see CONTRIBUTING for details., (*6)

Security

For any security related issues, please email send an email at alex@gentle.ro instead of using the issue tracker., (*7)

License

Licensed under the MIT License - see the LICENSE file for details., (*8)

The Versions

14/08 2017

dev-develop

dev-develop https://github.com/vimishor/cnp-php

Personal Identification Number (Cod Numeric Personal) validation

  Sources   Download

MIT

The Requires

 

The Development Requires

cnp identification romania

14/08 2017

dev-master

9999999-dev https://github.com/vimishor/cnp-php

Personal Identification Number (Cod Numeric Personal) validation

  Sources   Download

MIT

The Requires

 

The Development Requires

cnp identification romania

14/08 2017

0.1.0

0.1.0.0 https://github.com/vimishor/cnp-php

Personal Identification Number (Cod Numeric Personal) validation

  Sources   Download

MIT

The Requires

 

The Development Requires

cnp identification romania