opis/string
Lightweight PHP string utilities from the Opis ecosystem. Provides helpful helpers for common string operations like trimming, case conversion, searching, slicing, and formatting, with a simple API suited for everyday use in Laravel and standalone projects.
Opis String is a tiny library that allows you to work with multibyte encoded strings in an object-oriented manner. The library has no dependencies to mb_string or similar PHP extensions.
The full documentation for this library can be found here.
Opis String is licensed under the Apache License, Version 2.0.
Opis String is available on Packagist, and it can be installed from a command line interface by using Composer.
composer require opis/string
Or you could directly reference it into your composer.json file as a dependency
{
"require": {
"opis/string": "^2.1"
}
}
How can I help you explore Laravel packages today?