Download the PHP package jordanbrauer/phelpers without Composer
On this page you can find all versions of the php package jordanbrauer/phelpers. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jordanbrauer/phelpers
More information about jordanbrauer/phelpers
Files in jordanbrauer/phelpers
Package phelpers
Short Description Collection of random helper QoLfunctions for PHP.
License MIT
Informations about the package phelpers
PHelPers
A collection of random quality of life functions for PHP – a sort of toolbox.
Requirements
There are not many requirements for this library; infact, the only true requirement is PHP, but if you plan to contribute, having GNU Make installed will make for nicer dev experience than without.
Requirement | Version |
---|---|
PHP | ^7.2 |
Make (dev only) | ^3.81 |
Installation
Nothing much to do but require the library in your own project's composer dependencies!
Once you have the library installed, head over to the list of available functions to shop around.
Development
- Start by cloning the project to your own machine.
- Move yourself into the newly cloned repository directory.
- Run make to install dev dependencies.
Usage
As mentioned in the Requirements section of this document, having GNU Make installed on your system will make for nice development experience while contributing. To get started, run Make without any targets or arguments:
And you will be greeted with the list of targets for this project!
Try Me
If you're not sure that this library is right for you, can "try before you buy". Start by the REPL packaged with the repository!
Using the functions is easy – just make sure that you preface your functions with the projects namespace first.
Available Functions
Array Functions
append
array_make
generate
head
is_associative
only
prepend
tail
wrap
Number Functions
between
ordinal
random_float
Object Functions
N/A
String Functions
append
camel_case
class_basename
kebab_case
pascal_case
prepend
snake_case
str_random
Miscellaneous Functions
blank
retry
swap
tap
transform
value
with