arabcoders / utext
字符串操作库
v2.0.1
2022-01-18 08:09 UTC
Requires
- php: >=8.0
- ext-mbstring: *
README
基于 laravel/support 字符串类。
该库的目的是抽象化底层字符串函数,而不是直接依赖于 mbstring 或 intl 函数。
安装
通过 Composer
$ composer require arabcoders/utext
使用示例。
<?php require __DIR__ . 'vendor/autoload.php'; use \arabcoders\utext\UText; echo (new UText('foo'))->upper(); // -- or you could use the shortcut function auto included by the package. echo u('foo')->upper();