wernerdweight / stringy
通用增强型异常,可用于其他项目
1.0.0
2023-02-21 18:45 UTC
Requires
- php: >=8.1
- ext-mbstring: *
- thecodingmachine/safe: ^2.4
- wernerdweight/enhanced-exception: ^2.0
Requires (Dev)
README
具有一致和可预测API的PHP Stringy对象
安装
- 使用composer下载
composer require wernerdweight/stringy
- 在项目中使用
use WernerDweight\Stringy\Stringy; $stringy = new Stringy('This is a string'); echo $string ->toLowercase() // this is a string ->replace(' ', '-') // this-is-a-string ->convertCase(Stringy::KEBAB, Stringy::PASCAL) // ThisIsAString ->reverse(); // gnirtSAsIsihT
API
待办事项