jaxwilko/human-name-processor
最新稳定版本:v0.1.3
Composer 安装命令:
composer require jaxwilko/human-name-processor
包简介
Simple name processing in php
README 文档
README
This package aims to provide quick and easy name processing to produce a standardised format for name handling.
Installation
composer require jaxwilko/human-name-processor
Usage
<?php require __DIR__ . '/vendor/autoload.php'; $processor = new JaxName\HumanNameProcessor(); $name = $processor->make('Mr. John Smith');
The processor make method returns an instance of JaxName\HumanName which provides methods for getting elements of
the name. For instance:
$name->getTitle(); // Mr. $name->getFirstName(); // John $name->getLastName(); // Smith // the class also provides a __toString method echo $name; // Mr. John Smith
Testing
./vendor/bin/phpunit tests --testdox --color
统计信息
- 总下载量: 9.44k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-05-19