nurmanhabib/nik-parser 问题修复 & 功能扩展

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

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

nurmanhabib/nik-parser

Composer 安装命令:

composer require nurmanhabib/nik-parser

包简介

Parsing of NIK

README 文档

README

NIK Parser is used to parse a Population Identification Number that is valid in Indonesia or commonly called NIK. NIK is an arrangement of numbers that have meaning. Each NIK may contain information:

  • Area of origin (village, sub-district, city/district, and provincial level)
  • Sex (male or female)
  • Date of birth

This process only relies on information from the ID code, there is no need to connect to the Dukcapil service. Especially for parsing the area of origin requires a valid area database issued by the Ministry of Home Affairs (I am currently developing it)

Installation

Use the package manager composer to install nik-parser.

composer require nurmanhabib/nik-parser

Usage

<?php

require "vendor/autoload.php";

use Nurmanhabib\NIKParser\NIKParser;

$nik = "1050245708900001";
$parser = new NIKParser($nik);

echo $parser->getDateOfBirth()->toDateString(); // Output: 1990-08-17
echo $parser->getSex(); // Output: female

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-10-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固