https://github.com/prinsfrank/mrtd
Machine-Readable Travel Document parser
https://github.com/prinsfrank/mrtd
mrtd mrtd-parser mrz mrz-parser
Last synced: 6 months ago
JSON representation
Machine-Readable Travel Document parser
- Host: GitHub
- URL: https://github.com/prinsfrank/mrtd
- Owner: PrinsFrank
- License: mit
- Created: 2023-07-28T22:42:06.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-11T01:57:01.000Z (about 2 years ago)
- Last Synced: 2025-04-12T13:14:01.503Z (6 months ago)
- Topics: mrtd, mrtd-parser, mrz, mrz-parser
- Language: PHP
- Homepage:
- Size: 244 KB
- Stars: 4
- Watchers: 2
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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](https://www.icao.int/publications/pages/publication.aspx?docnum=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 packageTo 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](https://www.icao.int/publications/Documents/9303_p5_cons_en.pdf), 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](https://www.icao.int/publications/Documents/9303_p6_cons_en.pdf), 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](https://www.icao.int/publications/Documents/9303_p4_cons_en.pdf), Appendix B. (Hover for short descriptions)
P<
UTO
ERIKSSON<<ANNA<MARIA<<<<<<<<<<<<<<<<<<<
L898902C3
7
UTO
740812
2
F
120415
9
ZE184226B<<<<<
1
0