https://github.com/iqomp/helper
Collection of global helper functions.
https://github.com/iqomp/helper
Last synced: 6 months ago
JSON representation
Collection of global helper functions.
- Host: GitHub
- URL: https://github.com/iqomp/helper
- Owner: iqomp
- Created: 2021-04-22T08:35:50.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-04-22T08:36:46.000Z (about 5 years ago)
- Last Synced: 2025-05-28T04:06:09.428Z (about 1 year ago)
- Language: PHP
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# iqomp/helper
Collection of global helper functions.
## Installation
```bash
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