elfsundae / laravel-helper
Laravel Helper
Installs: 863
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/elfsundae/laravel-helper
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) | trimwith 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.