hyperia/yii2-string-helpers
最新稳定版本:1.0.4
Composer 安装命令:
composer require hyperia/yii2-string-helpers
包简介
String helpers for your Yii2 app
关键字:
README 文档
README
Extension for Yii2 string helpers
Installation
The preferred way to install this extension is through composer.
Either run
composer require hyperia/yii2-string-helpers:"^1.0"
or add
"hyperia/yii2-string-helpers": "^1.0"
to the require section of your composer.json.
Available Methods
- contains
- isLonger
- isShorter
- length
- toLower
- toUpper
- firstCharToUpper
- removeAccent
Usage
use hyperia\helpers\StringHelper; echo StringHelper::isLonger('This is test string', 12); // 1 echo StrinhHelper::removeAccent('Ħí ŧħə®ë, юßť å test!'); // Hi there, jusst a test! echo StringHelper::contains('is', 'This is test string'); // 1
Tests
./vendor/bin/phpunit
统计信息
- 总下载量: 9.39k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-07-11