Skip to content

Latest commit

 

History

History
104 lines (84 loc) · 4.72 KB

README.md

File metadata and controls

104 lines (84 loc) · 4.72 KB
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