prinsfrank / mrtd
Machine-Readable Travel Document parser
Fund package maintenance!
PrinsFrank
Requires
- php: ^8.1 || ^8.2
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.22
- phpstan/phpstan: ^1.10
- phpunit/phpunit: ^10.2
This package is auto-updated.
Last update: 2024-10-11 04:18:20 UTC
README
MRTD - Machine Readable Travel Documents
Machine Readable Travel Documents are everywhere. They are standardized by ICAO - the International Civil Aviation Organization, a United Nations specialized agency.
MRTDs are standardized in Doc series 9303.
This Package currently implements retrieving data from MRZ strings and checking data integrity by calculating check digits. It doesn't implement generating MRZ strings from data or checking data correctness from source data to encoded data. Feel free to contribute!
Setup
Note Make sure you are running PHP 8.1 or higher to use this package
To start right away, run the following command in your composer project;
composer require prinsfrank/mrtd
Or for development only;
composer require prinsfrank/mrtd --dev
MRTD1
Format as specified in Doc 9303 Part 5, Appendix B. (Hover for short descriptions)
MRTD2
Format as specified in Doc 9303 Part 6, Appendix B. (Hover for short descriptions)
MRTD3
Format as specified in Doc 9303 Part 4, Appendix B. (Hover for short descriptions)