czechphp / invalid-document
Invalidity check of documents in the database of Ministry of the Interior of the Czech Republic
v2.0.0
2026-08-14 14:25 UTC
Requires
- php: >=7.4
- ext-libxml: *
- ext-simplexml: *
- psr/http-client: ^1.0
- psr/http-factory: ^1.0
- psr/http-message: ^1.0 || ^2.0
Requires (Dev)
- phpunit/phpunit: ^9.5
README
Czech: Kontrola neplatnosti dokladů u Ministerstva vnitra České republiky.
Invalidity check of documents in the database of Ministry of the Interior of the Czech Republic.
Note that as of now, the English documentation has multiple incorrect descriptions.
It's possible to check following document numbers:
- Identification card (Občanský průkaz)
- Centrally issued passport (Centrálně vydávaný cestovní pas)
- 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 }