arabcoders / utext

字符串操作库

v2.0.1 2022-01-18 08:09 UTC

This package is auto-updated.

Last update: 2024-09-18 13:55:23 UTC


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();