{"id":50200861,"url":"https://github.com/RakibDevs/mrz-parser","last_synced_at":"2026-06-11T14:00:34.654Z","repository":{"id":41058445,"uuid":"507032939","full_name":"rakibdevs/mrz-parser","owner":"rakibdevs","description":"A PHP package for MRZ (Machine Readable Zones) code parser for Passport, Visa \u0026 Travel Document (TD1 \u0026 TD2).","archived":false,"fork":false,"pushed_at":"2024-07-08T19:10:32.000Z","size":53,"stargazers_count":38,"open_issues_count":1,"forks_count":10,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-05T11:46:10.939Z","etag":null,"topics":["mrz","mrz-parser","passport","php","visa"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rakibdevs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"rakibdevs"}},"created_at":"2022-06-24T14:05:46.000Z","updated_at":"2025-08-19T07:25:43.000Z","dependencies_parsed_at":"2023-02-18T17:40:14.843Z","dependency_job_id":null,"html_url":"https://github.com/rakibdevs/mrz-parser","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":"spatie/package-skeleton-php","purl":"pkg:github/rakibdevs/mrz-parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rakibdevs%2Fmrz-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rakibdevs%2Fmrz-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rakibdevs%2Fmrz-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rakibdevs%2Fmrz-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rakibdevs","download_url":"https://codeload.github.com/rakibdevs/mrz-parser/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rakibdevs%2Fmrz-parser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34201842,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-11T02:00:06.485Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mrz","mrz-parser","passport","php","visa"],"created_at":"2026-05-25T22:00:42.189Z","updated_at":"2026-06-11T14:00:34.632Z","avatar_url":"https://github.com/rakibdevs.png","language":"PHP","funding_links":["https://github.com/sponsors/rakibdevs"],"categories":["Developer Tools \u0026 Libraries"],"sub_categories":["🚀 How to contribute"],"readme":"\n# MRZ (Machine Readable Zones) Parser for PHP\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/rakibdevs/mrz-parser.svg?style=flat-square)](https://packagist.org/packages/rakibdevs/mrz-parser)\n\n\nA PHP package for MRZ (Machine Readable Zones) code parser for Passport, Visa \u0026 Travel Document (TD1 \u0026 TD2).\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require rakibdevs/mrz-parser\n```\n\n## Usage\n\n```php\nuse Rakibdevs\\MrzParser\\MrzParser;\n.....\n.....\n$data = MrzParser::parse('P\u003cUTOERIKSSON\u003c\u003cANNA\u003cMARIA\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\nL898902C36UTO7408122F1204159ZE184226B\u003c\u003c\u003c\u003c\u003c10');\n\nvar_dump($data);\n```\n## Output\n```json\n{\n    \"type\": \"Passport\",\n    \"card_no\": \"L898902C3\",\n    \"issuer\": \"Utopian\",\n    \"date_of_expiry\": \"2012-04-15\",\n    \"first_name\": \"ANNA MARIA\",\n    \"last_name\": \"ERIKSSON\",\n    \"date_of_birth\": \"1974-08-12\",\n    \"gender\": \"Female\",\n    \"personal_number\": \"ZE184226B\",\n    \"nationality\": \"Utopian\"\n}\n```\n\n## Supported Document\n#### [Passport (TD3)](https://www.icao.int/publications/Documents/9303_p4_cons_en.pdf)\n```\nP\u003cUTOERIKSSON\u003c\u003cANNA\u003cMARIA\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\nL898902C36UTO7408122F1204159ZE184226B\u003c\u003c\u003c\u003c\u003c10\n```\n#### [Visa](https://www.icao.int/publications/Documents/9303_p7_cons_en.pdf)\n```\nV\u003cUTOERIKSSON\u003c\u003cANNA\u003cMARIA\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\nL8988901C4XXX7408122F96121096ZE184226B\u003c\u003c\u003c\u003c\u003c\u003c\n```\nOr\n```\nV\u003cUTOERIKSSON\u003c\u003cANNA\u003cMARIA\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\nL8988901C4XXX7408122F9612109\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\n```\n#### [Travel Document (TD1)](https://www.icao.int/publications/Documents/9303_p5_cons_en.pdf)\n```\nI\u003cUTOD231458907\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\n7408122F1204159UTO\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c6\nERIKSSON\u003c\u003cANNA\u003cMARIA\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\n```\n\n#### [Travel Document (TD2)](https://www.icao.int/publications/Documents/9303_p6_cons_en.pdf)\n```\nI\u003cUTOERIKSSON\u003c\u003cANNA\u003cMARIA\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\nD231458907UTO7408122F1204159\u003c\u003c\u003c\u003c\u003c\u003c\u003c6\n```\n\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n## Contributing\n\nPlease see [CONTRIBUTING](https://github.com/spatie/.github/blob/main/CONTRIBUTING.md) for details.\n\n## Security Vulnerabilities\n\nPlease review [our security policy](../../security/policy) on how to report security vulnerabilities.\n\n## Credits\n\n- [Md. Rakibul Islam](https://github.com/rakibdevs)\n- [All Contributors](../../contributors)\n\nSpecial thanks to [tetrahydra](https://github.com/tetrahydra) for organised country list, [Al Amin](https://github.com/al-amindev) for help extracting information.\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRakibDevs%2Fmrz-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FRakibDevs%2Fmrz-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRakibDevs%2Fmrz-parser/lists"}