elfsundae / laravel-helper
This package is abandoned and no longer maintained.
The author suggests using the elfsundae/urlsafe-base64 package instead.
Laravel Helper
1.3.1
2017-10-10 11:02 UTC
Requires
- php: >=5.6.4
- elfsundae/urlsafe-base64: ~1.1
- illuminate/support: 5.*
Requires (Dev)
- mockery/mockery: 0.9.*
- phpunit/phpunit: ~5.7
This package is not auto-updated.
Last update: 2022-02-01 13:07:47 UTC
README
Installation
You can install this package via the Composer manager:
$ composer require elfsundae/laravel-helper
Available Global Functions
Function | Description |
---|---|
urlsafe_base64_encode($data) |
URL-safe base64_encode |
urlsafe_base64_decode($data, $strict = false) |
URL-safe base64_decode |
mb_trim($string) |
trim with mbstring support |
string_value($value, $jsonOptions = 0) |
Converts any type to a string |
in_arrayi($needle, $haystack) |
Case-insensitive in_array |
active() |
Returns string 'active' if the current request URI matches the given patterns |
asset_from($root, $path = '', $secure = null) |
Generate the URL to an asset from a custom root domain such as CDN, etc |
Testing
$ composer test
License
This package is open-sourced software licensed under the MIT License.