iqomp/helper

Collection of global helper functions

Maintainers

Details

github.com/iqomp/helper

Source

Issues

Installs: 8

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:helper

0.0.1 2021-04-22 08:36 UTC

This package is auto-updated.

Last update: 2024-04-22 15:11:23 UTC


README

Collection of global helper functions.

Installation

composer require iqomp/helper

Functions

alt(...$args)

Get thruly value from multiple options

deb(...$args): void

Printout vars for debuging purpose

group_by_prop(array $array, string $prop): array

Group list of object by property of the object

hs(string $str): string

Shorthand for htmlspeciachars

is_indexed_array(array $array): bool

Check if the array is indexed array

object_replace(object $origin, object $new): object

Replace object old property to the new one

objectify($arr)

Convert the array value to object

prop_as_key(array $array, string $prop): array

Use array object property as array key

to_slug(string $str): string

Convert standard string to slug style