arabcoders/utext

String manipulation library

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

This package is auto-updated.

Last update: 2024-04-18 12:47:43 UTC


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