pragmarx/ia-str is a Laravel package for laravel illuminate agnostic str.
It currently has 52 GitHub stars and 3.547.117 downloads on Packagist (latest version v7.3.1).
Install it with composer require pragmarx/ia-str.
Discover more Laravel packages by pragmarx
or browse all Laravel packages to compare alternatives.
Last updated
This package is an extraction of the Laravel's Illuminate\Support\Str class, including all helpers, repackaged to be agnostic and available to any PHP project.
It has its own namespace (IlluminateAgnostic\Str), so you can use it even on Laravel apps without risking a namespace conflict.
You can find some documentation on the available helpers here: https://laravel.com/docs/5.5/helpers.
Via Composer
$ composer require pragmarx/ia-str
use IlluminateAgnostic\Str\Support\Str;
Str::endsWith('Jönköping', 'ing')
// or
str_endswith('Jönköping', 'ing')
Please see CHANGELOG for more information on what has changed recently.
$ composer test
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.