PHPackages                             jordanbrauer/phelpers - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. jordanbrauer/phelpers

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

jordanbrauer/phelpers
=====================

Collection of random helper QoLfunctions for PHP.

v0.1.0(5y ago)3109[1 issues](https://github.com/jordanbrauer/phelpers/issues)[1 PRs](https://github.com/jordanbrauer/phelpers/pulls)MITPHPPHP ^7.2 || ^8.0

Since Jan 16Pushed 1y agoCompare

[ Source](https://github.com/jordanbrauer/phelpers)[ Packagist](https://packagist.org/packages/jordanbrauer/phelpers)[ RSS](/packages/jordanbrauer-phelpers/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (7)Versions (5)Used By (0)

PHelPers
========

[](#phelpers)

[![Latest Stable Version](https://camo.githubusercontent.com/91fdd3a5f0884650193028c3f8c1bc9d8e24b8d211eb834d7f292535e25edc53/68747470733a2f2f706f7365722e707567782e6f72672f6a6f7264616e6272617565722f7068656c706572732f76657273696f6e3f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/jordanbrauer/phelpers)[![Latest Unstable Version](https://camo.githubusercontent.com/86f13581602a4b04063c397687953e33900e1bb51964421623f54ffe17922141/68747470733a2f2f706f7365722e707567782e6f72672f6a6f7264616e6272617565722f7068656c706572732f762f756e737461626c653f666f726d61743d666c61742d737175617265)](//packagist.org/packages/jordanbrauer/phelpers)[![Test Status](https://camo.githubusercontent.com/8738bee24f152340b04835634d4ecff2e7cbb488fcb72b60d606a096fe522db3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6a6f7264616e6272617565722f7068656c706572732f43493f6c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/jordanbrauer/phelpers/actions?query=workflow%3ACI)

[![Maintenance](https://camo.githubusercontent.com/159b2aff0e6eb32b0bbe88a8e4b7e44bf24b5325eb3100aa76c5ddaa36bde2db/68747470733a2f2f696d672e736869656c64732e696f2f6d61696e74656e616e63652f7965732f323032312e7376673f7374796c653d666c61742d737175617265)](https://github.com/jordanbrauer/phelpers)[![Packagist](https://camo.githubusercontent.com/79d49fc9efd6e2679d897e12e3909fe687bbdb66f9041139c1c8eb1c05599e6c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a6f7264616e6272617565722f7068656c706572732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jordanbrauer/phelpers)[![PHP from Packagist](https://camo.githubusercontent.com/03af8206fdf5e674cb2faf0ba8679ef66bcc1e0115330807ea4e93423e1b4ea2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6a6f7264616e6272617565722f7068656c706572732e7376673f7374796c653d666c61742d737175617265)](https://secure.php.net/releases/)[![composer.lock available](https://camo.githubusercontent.com/9333f807ddca623deeef99b8f4b7951f3084070b983813094704ebd70f0c16d4/68747470733a2f2f706f7365722e707567782e6f72672f6a6f7264616e6272617565722f7068656c706572732f636f6d706f7365726c6f636b3f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/jordanbrauer/phelpers)[![license](https://camo.githubusercontent.com/bb37868052c1e387b9f9cc2787d015d50bc82c20dcd5b4aee87d9c7efb946234/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6a6f7264616e6272617565722f7068656c706572732e7376673f7374796c653d666c61742d737175617265)](https://github.com/jordanbrauer/phelpers/blob/master/LICENSE)

A collection of random quality of life functions for PHP – a sort of *toolbox*.

Requirements
------------

[](#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.

RequirementVersionPHP`^7.2`Make (dev only)`^3.81`Installation
------------

[](#installation)

Nothing much to do but require the library in your own project's composer dependencies!

```
$ composer require jordanbrauer/phelpers
```

Once you have the library installed, head over to the list of [**available functions**](#Available-Functions) to shop around.

Development
-----------

[](#development)

1. Start by cloning the project to your own machine.
2. Move yourself into the newly cloned repository directory.
3. Run make to install dev dependencies.

```
$ git clone https://github.com/jordanbrauer/phelpers.git \
    && cd ./phelpers \
    && make vendor \
    && make;
```

### Usage

[](#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:

```
$ make
```

And you will be greeted with the list of targets for this project!

```
Usage:
  make [target] [arg="val"...]

Targets:
  analysis        Run analysis
  help            Show this help message
  repl            Start a REPL instance and interact with the library
  test            Run tests
  vendor          Install vendor dependencies

```

### Try Me

[](#try-me)

If you're not sure that this library is right for you, can "try before you buy". Start by [installing the project for development](#Development), and then simply boot up [the **REPL**](https://github.com/bobthecow/psysh) packaged with the repository!

```
$ make repl
```

Using the functions is easy – just make sure that you preface your functions with the projects namespace first.

```
λ Phelpers\is_console() # true
λ Phelpers\is_web()     # false
```

Available Functions
-------------------

[](#available-functions)

### Array Functions

[](#array-functions)

- `append`
- `array_make`
- `generate`
- `head`
- `is_associative`
- `only`
- `prepend`
- `tail`
- `wrap`

### Number Functions

[](#number-functions)

- `between`
- `ordinal`
- `random_float`

### Object Functions

[](#object-functions)

*N/A*

### String Functions

[](#string-functions)

- `append`
- `camel_case`
- `class_basename`
- `kebab_case`
- `pascal_case`
- `prepend`
- `snake_case`
- `str_random`

### Miscellaneous Functions

[](#miscellaneous-functions)

- `blank`
- `retry`
- `swap`
- `tap`
- `transform`
- `value`
- `with`

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance23

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1915d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/867c1f6d15ff437167c0d7467b16da89095218d52e19716fbf9155497d100615?d=identicon)[jordanbrauer](/maintainers/jordanbrauer)

---

Top Contributors

[![jordanbrauer](https://avatars.githubusercontent.com/u/18744334?v=4)](https://github.com/jordanbrauer "jordanbrauer (106 commits)")

---

Tags

dependency-lessfunctionalhelperslibraryphp7

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/jordanbrauer-phelpers/health.svg)

```
[![Health](https://phpackages.com/badges/jordanbrauer-phelpers/health.svg)](https://phpackages.com/packages/jordanbrauer-phelpers)
```

###  Alternatives

[humanmade/hm-redirects

Simple plugin for handling WordPress redirects in a scalable manner.

29229.9k2](/packages/humanmade-hm-redirects)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
