solve/inflector
Composer 安装命令:
composer require solve/inflector
包简介
- [ Inflector ] class for string manipulating
README 文档
README
v1.0.1
This class allows you to solve different word-related tasks.
Methods available at the current version
Inflector::transliterate($text, $direction = "en"); Inflector::slugify($text, $slugChar = '-'); Inflector::underscore($text); Inflector::camelize($text); Inflector::pluralize($text); Inflector::singularize($text); Inflector::priceToStringLong($price, $keepFloat = true, $currency = "uah", $language = null); Inflector::priceToStringShort($price, $keepFloat = true, $currencyShortLabel = 'грн.', $language = null);
For the last two methods you can use a method to define default language:
Inflector::setDefaultLanguage($language)
统计信息
- 总下载量: 435
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 0
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2013-11-16