Download the PHP package code-distortion/laravel-helpers without Composer
On this page you can find all versions of the php package code-distortion/laravel-helpers. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download code-distortion/laravel-helpers
More information about code-distortion/laravel-helpers
Files in code-distortion/laravel-helpers
Package laravel-helpers
Short Description Various helpers and tools for Laravel
License MIT
Homepage https://github.com/code-distortion/laravel-helpers
Informations about the package laravel-helpers
Laravel Helpers
Warning
This package was developed for use in my own projects. It might not suit your needs or be documented properly, and may change at any time.
Installation
Install the package via composer:
The package will automatically register itself.
String Macros
These macros are applied to Illuminate\Support\Str
and Illuminate\Support\Stringable
:
unspace
unspace
Trim and remove repeated-spaces from a string:
By default, all whitespace characters are searched for and replaced with spaces.
You can specify which character/s to search for:
Searching for an empty string will search for all whitespace characters.
And you can specify a replacement:
If no replacement is specified, the character being searched for will be used.
If more than one character is being searched for, a space is used as the replacement.
Changelog
Please see CHANGELOG for more information what has changed recently.
Testing
Contributing
Contributions are not being sought for this package.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.