pragmarx / ia-str
Laravel Illuminate Agnostic Str
Installs: 3 012 192
Dependents: 7
Suggesters: 0
Security: 0
Stars: 52
Watchers: 3
Forks: 11
Open Issues: 3
Requires
- php: >=7.0
- voku/portable-ascii: ^1.4|^2.0
Requires (Dev)
- doctrine/inflector: ^1.2
- mockery/mockery: ~1.0
- moontoast/math: ^1.1
- nesbot/carbon: ^1.26 || ^2.00
- phpunit/phpunit: ~6.0|~7.0|~8.0|~9.0
- ramsey/uuid: ^3.7|^4.0
- squizlabs/php_codesniffer: ^2.3
- symfony/var-dumper: ~3.3|~4.0|~5.0|^6.0
README
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.
Install
Via Composer
$ composer require pragmarx/ia-str
Usage
use IlluminateAgnostic\Str\Support\Str; Str::endsWith('Jönköping', 'ing') // or str_endswith('Jönköping', 'ing')
Change log
Please see CHANGELOG for more information on what has changed recently.
Testing
$ composer test
Contributing
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
Security
If you discover any security related issues, please email acr@antoniocarlosribeiro.com instead of using the issue tracker.
Credits
- This package is an extraction of The Laravel Framework, created by Taylor Otwell.
- Package creator Antonio Carlos Ribeiro
- Contributors
License
The MIT License (MIT). Please see License File for more information.