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

This package is not auto-updated.

Last update: 2019-02-20 19:13:57 UTC


Latest Version on Packagist Software License Build Status StyleCI SensioLabsInsight Quality Score Code Coverage Total Downloads


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


$ composer test


This package is open-sourced software licensed under the MIT License.