theiconic/name-parser
Language-independent PHP name parser that splits full names into parts like salutation, first/middle name, initials, nicknames, last name (incl. prefixes like von/de) and suffixes (Jr/III/PhD). Supports comma formats, multi-language rules, and customizable normalization/whitespace.
TJ Hooker would have previously ended up as Tj Hooker, with Tj being the first name. However, this was seen as a bug, so this change is not treated as a breaking change.)lastname, firstname suffix where they were previously parsed as middle names (#18, thanks for reporting @adrienne)lastname, firstname, suffix and lastname, firstname initial, suffix patternssetMaxSalutationIndex()getLastnamePrefix() and pure last names (without prefixes) via getLastname(true) (#10, thanks @divinenanny)Charles Dickens (20th century) (#8, thanks @divinenanny)<lastname>, <firstname> <middlename> scenarios (thanks @francislavoie )... , ... , ... name patternsSir and MadamMx. (non-binary) salutationMiss to Miss, not to be confused with Ms.Prevent the Initial mapper from taking over the last part of a name if it's a single letter - unless it's explicitly allowed to do so via an option. This allows mapping of 'B' in 'James B' as last name.
Fix problem of flagging prefixes of a surname when there is not surname behind them(E.g: John Van)
How can I help you explore Laravel packages today?