kodmanyagha / laravel-helpers
Helper functions for Laravel and Lumen frameworks.
Installs: 2 965
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 0
Open Issues: 0
Requires
- php: ^8.0|^8.1|^8.2|^8.3|^8.4
- ext-curl: *
- ext-json: *
- ext-mysqli: *
- illuminate/support: ^7|^8|^v9|^v10|^v11
Suggests
- anik/form-request: Required to use form request in Lumen.
- dev-master
- 11.0.5
- 11.0.4
- 11.0.3
- 11.0.2
- 11.0.1
- 11.0.0
- 2.5.0
- 2.4.1
- 2.4.0
- 2.3.9
- 2.3.7
- 2.3.6
- 2.3.5
- 2.3.4
- 2.3.3
- 2.3.2
- 2.3.1
- 2.3.0
- 2.2.3
- 2.2.2
- 2.2.1
- 2.2.0
- 2.1.5
- 2.1.4
- 2.1.3
- 2.1.2
- 2.1.1
- 2.1.0
- 2.0.9
- 2.0.8
- 2.0.7
- 2.0.6
- 2.0.5
- 2.0.4
- 2.0.3
- 2.0.2
- 2.0.1
- 2.0
- 1.0.24
- 1.0.23
- 1.0.22
- 1.0.21
- 1.0.20
- 1.0.19
- 1.0.18
- 1.0.17
- 1.0.16
- 1.0.15
- 1.0.14
- 1.0.13
- 1.0.11
- 1.0.10
- 1.0.9
- 1.0.8
- 1.0.7
- 1.0.6
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
This package is auto-updated.
Last update: 2024-10-31 00:17:46 UTC
README
Some beautiful functions here. String to Object conversion, make array or object everything, log current file and line number, random date between given dates etc...
Installation
This is classical composer package. You can install with one command line and start to use it:
composer require kodmanyagha/laravel-helpers
Configuration
There isn't any configuration. Just install it.
Available Functions
makeArray($anything) Make array.
makeObject($anything) Make object.
stringToObject($string) String to Object.
objectToString($object) Object to Json string.
logDebug(...$args) Log::debug()
logInfo(...$args) Log::info()
logWarning(...$args) Log::warn()
logError(...$args) Log::error()
password() Generate password with APP_KEY salt.
printrExit() print_r and exit.
println($str) Print string with PHP_EOL.
mysqlNow() Current date and time with Mysql format.
randomDateTime($start, $end)
randomDate($start, $end)