https://github.com/antonioribeiro/ia-str
Laravel Illuminate Agnostic Str
https://github.com/antonioribeiro/ia-str
Last synced: 6 months ago
JSON representation
Laravel Illuminate Agnostic Str
- Host: GitHub
- URL: https://github.com/antonioribeiro/ia-str
- Owner: antonioribeiro
- License: mit
- Created: 2018-01-30T23:03:48.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-09-07T10:28:14.000Z (about 3 years ago)
- Last Synced: 2025-04-09T20:09:54.300Z (6 months ago)
- Language: PHP
- Size: 132 KB
- Stars: 52
- Watchers: 2
- Forks: 11
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# IlluminateAgnostic \ Str
This package is an extraction of the [Laravel's Illuminate\Support\Str](https://github.com/laravel/framework/blob/5.5/src/Illuminate/Support/Str.php) 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
``` bash
$ composer require pragmarx/ia-str
```## Usage
``` php
use IlluminateAgnostic\Str\Support\Str;Str::endsWith('Jönköping', 'ing')
// or
str_endswith('Jönköping', 'ing')
```## Change log
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
## Testing
``` bash
$ composer test
```## Contributing
Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE_OF_CONDUCT](CODE_OF_CONDUCT.md) 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](https://twitter.com/taylorotwell).
- Package creator [Antonio Carlos Ribeiro](https://twitter.com/iantonioribeiro)
- [Contributors](https://github.com/antonioribeiro/ia-str/graphs/contributors)## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.