承接 tomasz-kr/pesel 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

tomasz-kr/pesel

Composer 安装命令:

composer require tomasz-kr/pesel

包简介

Obiekt PESEL, możliwość: walidacji, ustawienie zakresu roku poprawnych peseli, wyciągnięcia danych jakie znajdują się m.in data urodzenia, płeć

README 文档

README

Object Pesel PESEL mean Personal Identificator for Poland

Build Status

Getting Started

Used this object for every time when your project has number PESEL and you must validation it.

Required

PHP >= 7.1

Installing

Go to your project directory where the composer.json file is located and type:

composer install tomasz-kr/pesel

Running the tests

phpunit --configuration phpunit.xml 

Overview

Firstly, create object Pesel and add in constructor number Pesel:

$pesel = new PESEL("NUMBER");

Now, you can take information about:

  • Correct format
$pesel->isCorrectLenght(); //boolean
  • Correct only number
$pesel->isCorrectNumber(); //boolean
  • Correct for number controls
$pesel->valid(); //boolean
  • Correct for exist in this day
$pesel->isCorrectDateNow();
  • Correct for all condition
$pesel->isCorrect(); //boolean
  • Birthday
$pesel->getBirthday()->format("Y-m-d");
  • Gender
$pesel->setTextForMan("Man");
$pesel->setTextForWoman("Woman");
$pesel->whatGender(); //return man or woman
  • Correct year between 2 years (min and max)
$pesel->isCorrectYear(); //boolean

Default:

Min has 1st January 1800

Max has this days

  • Set max year
$pesel->setMaxYear(\DateTime $dateTime);
  • Set min year
$pesel->setMinYear(\DateTime $dateTime);

Author

Tomasz Król

License

This project is licensed under the MIT Licence - see the LICENSE file for details

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固