czechphp / invalid-document
捷克共和国内政部数据库中文档无效性检查
v1.1.0
2023-11-03 19:06 UTC
Requires
- php: >=7.4
- ext-simplexml: *
- psr/http-client: ^1.0
- psr/http-factory: ^1.0
- psr/http-message: ^1.0
Requires (Dev)
- phpunit/phpunit: ^9.5
This package is auto-updated.
Last update: 2024-09-03 20:49:39 UTC
README
捷克语:捷克共和国内政部文档无效性检查。 官方信息(cs)
捷克共和国内政部数据库中文档无效性检查。 官方信息(en)
可以检查以下文档编号
- 身份证(Občanský průkaz)
- 中央发行护照(Centrálně vydávaný cestovní pas)
- 地区发行护照(Cestovní pas vydaný okresním úřadem)
- 枪支许可证(Zbrojní průkaz)
安装
使用以下命令安装最新版本
$ composer require czechphp/invalid-document
选择并安装 PSR-18 HTTP 客户端实现 和 PSR-17 HTTP 工厂实现。
基本用法
<?php use Czechphp\InvalidDocument\InvalidDocument; $client = null; // anything that implements PSR-18 HTTP Client $requestFactory = null; // anything that implements PSR-17 HTTP Factory $invalidDocument = new InvalidDocument($client, $requestFactory); $message = $invalidDocument->get(InvalidDocument::IDENTIFICATION_CARD, '123456AB'); if (true === $message->isRegistered()) { // the document is in registry of invalid documents // for example the document might be replaced with new one and this one was invalidated } if (false === $message->isRegistered()) { // the document is not in the registry of invalid documents // this does not mean that this document is valid // Ministry of the Interior of the Czech Republic did not specifically declared this document as invalid }