定制 czechphp/invalid-document 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

czechphp/invalid-document

最新稳定版本:v1.2.0

Composer 安装命令:

composer require czechphp/invalid-document

包简介

Invalidity check of documents in the database of Ministry of the Interior of the Czech Republic

README 文档

README

Czech: Kontrola neplatnosti dokladů u Ministerstva vnitra České republiky. Oficiální informace (cs)

Build Status

Invalidity check of documents in the database of Ministry of the Interior of the Czech Republic. Official information (en)

It's possible to check following document numbers:

  • Identification card (Občanský průkaz)
  • Centrally issued passport (Centrálně vydávaný cestovní pas)
  • Regionally issued passport (Cestovní pas vydaný okresním úřadem)
  • Gun license (Zbrojní průkaz)

Installation

Install the latest version with

$ composer require czechphp/invalid-document

Choose and install PSR-18 HTTP Client implementation and PSR-17 HTTP Factory implementation.

Basic usage

<?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
}

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-08-27