New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

aurion72/helpers

Aurion72 Helpers
14,667
Install
composer require aurion72/helpers
Latest Version:v1.1.2
PHP:>=7.2
Laravel:5 – 9
License:MIT
Last Updated:Mar 4, 2022
Links: GitHub  ·  Packagist
Maintainer: Aurion72

Helpers

Helpers is a general purpose package with some useful helper functions.

Usage

debug

rawSql($builder) : Return Raw SQL from Query Builder

loadingTimeStart(): Start counting loading time

loadingTimeEnd($die = true) : Save loading time

strings

boolToString($value, $true_string = null, $false_string = null, $locale = null) : Transform a value to a string.

boolToColorizedString($value, $true_string = null, $false_string = null, $locale = null) : Transform a value to a colorized string (BS4 style)

formatPrice($price, $currency_sign = ' €') : Turn a number into a currency formatted string

formatPercent($percent, $precision = 2, $percent_sign = true) : Turn a number into a percentage formatted string

randomPassword($length, $caps = false) : Generate a random password

media

rmdirRecursive($dir) : Recursively remove directories and files

stringToHexColor($string) : Convert a string to a color in hexadecimal format

numbers

randomBoolean($chance_of_true = 50) : Return a boolean with a random factor

addSign($value, $minus_only = false): Add a sign to a number

Related Packages

xnxk/helpers

Provides backwards compatibility for helpers in the XNXK Tech.

11,896 0
velcoda/helpers

Your Package Description here

4,997
mossengine/helper

PHP Class that streamlines usages of static method helpers without needing to lo...

1,842 0
laravel/helpers

Provides backwards compatibility for helpers in the latest Laravel release.

69,288,844 809
stepanenko3/laravel-helpers

Helpers for laravel

1,373,762 7

Version History

Version Released PHP Laravel License
v1.1.2 >=7.2 >=5.6 MIT
v1.1.1 >=7.2 >=5.6 MIT
v1.1.0 >=7.2 >=5.6 MIT
v1.0.0 >=7.2 ^5.6|^6.0|^7.0|^8.0 MIT
v0.2.0 >=7.2 ^5.6|^6.0|^7.0|^8.0 MIT