k92/phputils
最新稳定版本:v2.1.0
Composer 安装命令:
composer require k92/phputils
包简介
K92 utility php lib
README 文档
README
phputils is a share utility library
Usage
use K92\Phputils\StrUtil; // normal case str_replace([1, 2], [2, 3], '12'); // '33' StrUtil::replaceOnce([1, 2], [2, 3], '12'); // '23' str_replace(['1', '0'], ['x110x2', 'x010'], 'a1b0c') // 'ax11x010x2bx010c' StrUtil::replaceOnce(['1', '0'], ['x110x2', 'x010'], 'a1b0c') // 'ax110x2bx010c' // edge case str_replace([12, 23], [23, 45], '123') // '453' StrUtil::replaceOnce([12, 23], [23, 45], '123') // false str_replace([12, 23], [23, 45], '1223') // '4545' StrUtil::replaceOnce([12, 23], [23, 45], '1223') // false
Requirement
Need mbstring extension
Installation
Use the package manager composer to install phputils.
composer require k92/phputils
Testing
./vendor/bin/phpunit tests
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
License
统计信息
- 总下载量: 21
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-11-18