vimishor/cnp-php 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

vimishor/cnp-php

最新稳定版本:0.2.0

Composer 安装命令:

composer require vimishor/cnp-php

包简介

Personal Identification Number (Cod Numeric Personal) validation

README 文档

README

Latest Version License Build Status Coverage Status Code quality

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

Install

Via Composer

$ composer require vimishor/cnp-php

Usage

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

$ make test

Contributing

Please see CONTRIBUTING for details.

Security

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

License

Licensed under the MIT License - see the LICENSE file for details.

统计信息

  • 总下载量: 2.45k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-08-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固