Download the PHP package jkque/laravel-string-replace without Composer
On this page you can find all versions of the php package jkque/laravel-string-replace. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jkque/laravel-string-replace
More information about jkque/laravel-string-replace
Files in jkque/laravel-string-replace
Package laravel-string-replace
Short Description Helper for a messy str_replace
License MIT
Homepage https://github.com/jkque/laravel-string-replace
Informations about the package laravel-string-replace
For complex string replace
This package will help you when str_replace gets a little bit messy.
Introduction
When you see something like this:
A cleaner way:
Usage
You can use conditional closures when
and unless
By default html tags is being strip but you can turn it off by passing a false value in stripTags(false)
method.
Pipeline
To breakdown complex process into individual tasks you can create a class that extends Jkque\StringReplace\StringReplace
A helper command to create this class php artisan string-replace:pipe {name} {model? : With model}
. You can change the namespace of your model in the config file the default is 'App\'.
Installation
You can install the package via composer:
publish config files
Testing
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- John Kevin Cadungog
- All Contributors
License
The MIT License (MIT). Please see License File for more information.