bastian/inflector
Composer 安装命令:
composer require bastian/inflector
包简介
A comprehensive package for converting singular nouns to their plural and back.
README 文档
README
A package to transform english words from singular to plural and back.
Usage
Inflector\Inflector::plural('Tree'); // Trees Inflector\Inflector::singular('Cakes'); // Cake Inflector\Inflector::plural('Fish'); // Fish
Providers may be used to retrieve uncommon irregular words.
Inflector\Inflector::setProvider(new Inflector\JsonProvider);
Providers must implement the Inflector\ProviderInterface.
统计信息
- 总下载量: 47
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-04-12