https://github.com/activecollab/humannameparser
https://github.com/activecollab/humannameparser
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/activecollab/humannameparser
- Owner: activecollab
- License: mit
- Created: 2016-05-07T19:38:00.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-05-07T20:27:16.000Z (about 10 years ago)
- Last Synced: 2025-04-08T22:39:16.516Z (about 1 year ago)
- Language: PHP
- Size: 17.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Human Name Parser
[](https://travis-ci.org/activecollab/humannameparser)
Takes human names of arbitrary complexity and various formats and parses initial, first name, last name, middle name, nicknames etc. Example:
```php
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:
```bash
phpunit
```