davidgorges/human-name-parser
Parse human names into structured parts with this PHP library. Split full names into salutation, first name, middle name, last name, and suffix, handling initials, nicknames, and common formats. Lightweight and easy to drop into Laravel or any PHP project.
human-name-parser splits a person's full name into its individual parts, making it easy to store, search, and display names consistently. Pass it a string like "Mr. John A. Doe Jr." and it returns the salutation, first name, middle names, last name, and suffix, handling messy real-world edge cases such as missing parts, compound surnames, and titles.
How can I help you explore Laravel packages today?