arabcoders / utext
String manipulation library
v2.0.1
2022-01-18 08:09 UTC
Requires
- php: >=8.0
- ext-mbstring: *
README
based on the laravel/support
string class.
The purpose of this library is to abstract away the underlying string functions. instead of relying on mbstring or intl functions directly.
Install
Via Composer
$ composer require arabcoders/utext
Usage Example.
<?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();