Machine-Readable Travel Document parser

v0.1 2023-08-04 20:21 UTC

This package is auto-updated.

Last update: 2024-04-11 03:23:00 UTC


README

Banner

MRTD - Machine Readable Travel Documents

GitHub PHP Version Support

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)

I< UTO D23145890 7 <<<<<<<<<<<<<<<
740812 2 F 120415 9 UTO <<<<<<<<<<< 6
ERIKSSON<<ANNA<MARIA<<<<<<<<<<

MRTD2

Format as specified in Doc 9303 Part 6, Appendix B. (Hover for short descriptions)

I< UTO ERIKSSON<<ANNA<MARIA<<<<<<<<<<<
D23145890 7 UTO 740812 2 F 120415 9 <<<<<<< 6

MRTD3

Format as specified in Doc 9303 Part 4, Appendix B. (Hover for short descriptions)

P< UTO ERIKSSON<<ANNA<MARIA<<<<<<<<<<<<<<<<<<<
L898902C3 7 UTO 740812 2 F 120415 9 ZE184226B<<<<< 1 0