jordanbrauer/phelpers

There is no license information available for the latest version (dev-master) of this package.

Collection of random helper QoLfunctions for PHP.

dev-master 2020-03-11 17:14 UTC

This package is not auto-updated.

Last update: 2020-04-02 02:47:13 UTC


README

Collection of random helper QoLfunctions for PHP.

use function Phelpers{append, head, tail};

$sequence = '1,2,3';
$sequence = append(4, $sequence, ',');

echo $sequence; # (string) 1,2,3,4

$list = [1, 2, 3];
$list = append(4, $list);

echo head($list); # (int) 1
echo tail($list); # (int) 4

Try Me

If you would like to play around with the functions, simply boot up the REPL packaged with the repository!

$ php play

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