softhublk/sl-nic-number
最新稳定版本:2.0.1
Composer 安装命令:
composer require softhublk/sl-nic-number
包简介
Simple package to validate Sri Lankan NIC number
README 文档
README
Simple package to validate Sri Lankan NIC number
Install
Via Composer
$ composer require softhublk/sl-nic-number
Usage
<?php require 'vendor/autoload.php'; use Softhub\SlNicNumber\Nic; $nic = new Nic('991234567v'); echo 'NIC Type' . $nic->getCategory()->value . '<br>'; echo "Gender : {$nic->getGender()->value} <br>"; echo "Date Of Birth : {$nic->getDateOfBirth()->format('Y-m-d')}<br>"; echo 'Born day of the year ' . $nic->getBornDayOfTheYear() . '<br>';
Change log
Please see CHANGELOG for more information on what has changed recently.
Testing
$ composer test
Contributing
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
Security
If you discover any security related issues, please email avantha.nimna@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 9
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-01-08