Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only one last name supported #39

Open
unsized2 opened this issue Jul 4, 2022 · 0 comments
Open

Only one last name supported #39

unsized2 opened this issue Jul 4, 2022 · 0 comments

Comments

@unsized2
Copy link

unsized2 commented Jul 4, 2022

Some passports have more then one last name eg Portugese. The MRZ parser assumes only one lastname is present.

Possibly modify getFirstLastName to explode the lastName

private function getFirstLastName(string $fullName): array
 {
     [$lastName, $firstName] = explode('<<', $fullName);

     return [explode('<', $lastName), explode('<', $firstName)];
 } 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant