activecollab / humannameparser
Takes human names of arbitrary complexity and various formats leading initial, first name, last name, middle name, nicknames etc
Installs: 75 930
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 0
Open Issues: 0
Requires
- php: >=5.6.0
Requires (Dev)
- fabpot/php-cs-fixer: ^1.0
- phpunit/phpunit: ^5.0
This package is auto-updated.
Last update: 2024-12-05 02:34:32 UTC
README
Takes human names of arbitrary complexity and various formats and parses initial, first name, last name, middle name, nicknames etc. Example:
use ActiveCollab\HumanNameParser\Parser; $name = new Parser("Peter O'Toole"); print $name->getFirst() . "\n"; print $name->getLast();
Running tests
cd
to this directory and run:
phpunit