PHPackages                             minibase-app/minilib - 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. minibase-app/minilib

ActiveLibrary

minibase-app/minilib
====================

A collection of random, quality of life functions for PHP – a sort of kitchen-sink toolbox.

v0.1.1(5y ago)49MITPHPPHP ^7.2 || ^8.0

Since Feb 10Pushed 4y ago1 watchersCompare

[ Source](https://github.com/minibase-app/minilib)[ Packagist](https://packagist.org/packages/minibase-app/minilib)[ RSS](/packages/minibase-app-minilib/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (2)Dependencies (7)Versions (3)Used By (0)

Minilib
=======

[](#minilib)

[![Latest Stable Version](https://camo.githubusercontent.com/09d16737ce630c3c2a1d2d31f52519f74f65b4eff9de7783987556f25065f722/68747470733a2f2f706f7365722e707567782e6f72672f6d696e69626173652d6170702f6d696e696c69622f76657273696f6e3f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/minibase-app/minilib)[![Latest Unstable Version](https://camo.githubusercontent.com/11feb809d7dbcf6dcca2ffcf3c658f4a5a8ea244f613aefb0f6fb392d492e9ad/68747470733a2f2f706f7365722e707567782e6f72672f6d696e69626173652d6170702f6d696e696c69622f762f756e737461626c653f666f726d61743d666c61742d737175617265)](//packagist.org/packages/minibase-app/minilib)[![Test Status](https://camo.githubusercontent.com/684df2865b1887dbf10448105368ce1d0b481d9a8f4dd07b7f3dd17dab1886e6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6d696e69626173652d6170702f6d696e696c69622f43493f6c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/minibase-app/minilib/actions?query=workflow%3ACI)

[![Maintenance](https://camo.githubusercontent.com/159b2aff0e6eb32b0bbe88a8e4b7e44bf24b5325eb3100aa76c5ddaa36bde2db/68747470733a2f2f696d672e736869656c64732e696f2f6d61696e74656e616e63652f7965732f323032312e7376673f7374796c653d666c61742d737175617265)](https://github.com/minibase-app/minilib)[![Packagist](https://camo.githubusercontent.com/893a8481e4849271b37ae7ec8448bf76d78b309f08dea308e8abae381c28661b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d696e69626173652d6170702f6d696e696c69622e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/minibase-app/minilib)[![PHP from Packagist](https://camo.githubusercontent.com/2a7b3231829edae3c02454b827002eecbf8bd91b3f7ac8a27c347854021102a2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6d696e69626173652d6170702f6d696e696c69622e7376673f7374796c653d666c61742d737175617265)](https://secure.php.net/releases/)[![composer.lock available](https://camo.githubusercontent.com/4aadeea9df9ed7778c896d49a34140d1af9c23a1a6c03bbace05f231ccd709f8/68747470733a2f2f706f7365722e707567782e6f72672f6d696e69626173652d6170702f6d696e696c69622f636f6d706f7365726c6f636b3f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/minibase-app/minilib)[![license](https://camo.githubusercontent.com/9facc559383e6a8f9a5988e0e2b34f7f099a5f4fdfd9b725520750f055b9532a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d696e69626173652d6170702f6d696e696c69622e7376673f7374796c653d666c61742d737175617265)](https://github.com/minibase-app/minilib/blob/master/LICENSE)

A collection of random, quality of life functions for PHP – a sort of kitchen-sink *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 minibase-app/minilib
```

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/minibase-app/minilib.git \
    && cd ./minilib \
    && 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.

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

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

[](#available-functions)

*This is a non-exhaustive list – see the `src/` directory for a full list!*

### 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

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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

Every ~92 days

Total

2

Last Release

1827d 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 (112 commits)")

---

Tags

functionalhelperslibraryphputilities

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/minibase-app-minilib/health.svg)

```
[![Health](https://phpackages.com/badges/minibase-app-minilib/health.svg)](https://phpackages.com/packages/minibase-app-minilib)
```

PHPackages © 2026

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