src
1 year ago
stubs
4 years ago
.styleci.yml
4 years ago
CHANGELOG.md
4 years ago
CODE_OF_CONDUCT.md
4 years ago
CONTRIBUTING.md
4 years ago
ISSUE_TEMPLATE.md
4 years ago
LICENSE.md
4 years ago
PULL_REQUEST_TEMPLATE.md
4 years ago
README.md
4 years ago
composer.json
1 year ago
phpunit.xml
4 years ago
upgrade.sh
4 years ago
README.md
70 lines
| 1 | # IlluminateAgnostic \ Str |
| 2 | |
| 3 | <p align="center"> |
| 4 | <a href="https://packagist.org/packages/pragmarx/ia-str"><img alt="Latest Stable Version" src="https://img.shields.io/packagist/v/pragmarx/ia-str.svg?style=flat-square"></a> |
| 5 | <a href="LICENSE"><img alt="License" src="https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square"></a> |
| 6 | <a href="https://scrutinizer-ci.com/g/antonioribeiro/ia-str/?branch=master"><img alt="Code Quality" src="https://img.shields.io/scrutinizer/g/antonioribeiro/ia-str.svg?style=flat-square"></a> |
| 7 | <a href="https://travis-ci.org/antonioribeiro/ia-str"><img alt="Build" src="https://img.shields.io/travis/antonioribeiro/ia-str.svg?style=flat-square"></a> |
| 8 | <a href="https://packagist.org/packages/pragmarx/ia-str"><img alt="Downloads" src="https://img.shields.io/packagist/dt/pragmarx/ia-str.svg?style=flat-square"></a> |
| 9 | </p> |
| 10 | <p align="center"> |
| 11 | <a href="https://scrutinizer-ci.com/g/antonioribeiro/ia-str/?branch=master"><img alt="Coverage" src="https://img.shields.io/scrutinizer/coverage/g/antonioribeiro/ia-str.svg?style=flat-square"></a> |
| 12 | <a href="https://styleci.io/repos/119605663"><img alt="StyleCI" src="https://styleci.io/repos/119605663/shield"></a> |
| 13 | <!-- <a href="https://insight.sensiolabs.com/projects/156fbef1-b03f-4fca-ba97-57874b7a35bf"><img alt="SensioLabsInsight" src="https://img.shields.io/sensiolabs/i/156fbef1-b03f-4fca-ba97-57874b7a35bf.svg?style=flat-square"></a> --> |
| 14 | <a href="https://travis-ci.org/antonioribeiro/ia-str"><img alt="PHP" src="https://img.shields.io/badge/PHP-7.0%20--%207.3-brightgreen.svg?style=flat-square"></a> |
| 15 | </p> |
| 16 | |
| 17 | This package is an extraction of the [](https://github.com/laravel/framework/blob/5.5/src/Illuminate/Support/Str.phpLaravel's Illuminate\Support\Str](https://github.com/laravel/framework/blob/5.5/src/Illuminate/Support/Str.php](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. |
| 18 | |
| 19 | It has its own namespace **(IlluminateAgnostic\Str)**, so you can use it even on Laravel apps without risking a namespace conflict. |
| 20 | |
| 21 | You can find some documentation on the available helpers here: https://laravel.com/docs/5.5/helpers. |
| 22 | |
| 23 | ## Install |
| 24 | |
| 25 | Via Composer |
| 26 | |
| 27 | ``` bash |
| 28 | $ composer require pragmarx/ia-str |
| 29 | ``` |
| 30 | |
| 31 | ## Usage |
| 32 | |
| 33 | ``` php |
| 34 | use IlluminateAgnostic\Str\Support\Str; |
| 35 | |
| 36 | Str::endsWith('Jönköping', 'ing') |
| 37 | |
| 38 | // or |
| 39 | |
| 40 | str_endswith('Jönköping', 'ing') |
| 41 | ``` |
| 42 | |
| 43 | ## Change log |
| 44 | |
| 45 | Please see [](CHANGELOG.mdCHANGELOG](CHANGELOG.md](CHANGELOG.md) for more information on what has changed recently. |
| 46 | |
| 47 | ## Testing |
| 48 | |
| 49 | ``` bash |
| 50 | $ composer test |
| 51 | ``` |
| 52 | |
| 53 | ## Contributing |
| 54 | |
| 55 | Please see [](CONTRIBUTING.mdCONTRIBUTING](CONTRIBUTING.md](CONTRIBUTING.md) and [](CODE_OF_CONDUCT.mdCODE_OF_CONDUCT](CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md) for details. |
| 56 | |
| 57 | ## Security |
| 58 | |
| 59 | If you discover any security related issues, please email acr@antoniocarlosribeiro.com instead of using the issue tracker. |
| 60 | |
| 61 | ## Credits |
| 62 | |
| 63 | - This package is an extraction of The Laravel Framework, created by [](https://twitter.com/taylorotwellTaylor Otwell](https://twitter.com/taylorotwell](https://twitter.com/taylorotwell). |
| 64 | - Package creator [](https://twitter.com/iantonioribeiroAntonio Carlos Ribeiro](https://twitter.com/iantonioribeiro](https://twitter.com/iantonioribeiro) |
| 65 | - [](https://github.com/antonioribeiro/ia-str/graphs/contributorsContributors](https://github.com/antonioribeiro/ia-str/graphs/contributors](https://github.com/antonioribeiro/ia-str/graphs/contributors) |
| 66 | |
| 67 | ## License |
| 68 | |
| 69 | The MIT License (MIT). Please see [](LICENSE.mdLicense File](LICENSE.md](LICENSE.md) for more information. |
| 70 |