tommus / stringo
PHP中字符串的面向对象解决方案。
0.3.2
2019-02-01 12:50 UTC
Requires
- phpunit/phpunit: ^7
This package is auto-updated.
Last update: 2024-09-29 05:08:40 UTC
README
PHP中字符串的面向对象解决方案。
用法
// The from method creates a string from a string literal or variable. $string = Stringo::from('hello there'); // Methods that take no arguments can be used statically: $string = Stringo::fromCapitalize('hello'); // Hello $string = Stringo::fromSplit('hi there friend'); // ['hi', 'there', 'friend']
完整的API参考即将推出,但在此期间,请查看Stringo类和StringTest以获取用法示例。
测试
composer test