librevlad / fiona
进行中
0.1.1
2020-02-24 07:07 UTC
Requires
- illuminate/support: 5.*|6.*|7.*
Requires (Dev)
- phpunit/phpunit: 8.*
- squizlabs/php_codesniffer: ^3.5
- wanfeiyy/dd: ^1.0
This package is auto-updated.
Last update: 2024-09-29 05:55:28 UTC
README
PHP解析姓名的库。
安装
通过 composer 连接
composer require librevlad/fiona
使用
$fiona = new \Librevlad\Fiona\Detector(); $data = $fiona->detect('Иванов Иван Иванович');
array:5 [
"first_name" => Иван
"last_name" => Иванов
"patronymic" => Иванович
"gender" => male
"unmatched_segments" => []
]
测试
composer test
许可证
MIT 许可证 (MIT)。