PHPackages                             assegaiphp/util - 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. assegaiphp/util

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

assegaiphp/util
===============

A collection of useful PHP utility classes to simplify common tasks and enhance application development.

0.9.1(1mo ago)0303↓62.5%4MITPHPPHP &gt;=8.4CI passing

Since Sep 17Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/assegaiphp/util)[ Packagist](https://packagist.org/packages/assegaiphp/util)[ RSS](/packages/assegaiphp-util/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (7)Dependencies (6)Versions (11)Used By (4)

 [![Assegai Logo](https://camo.githubusercontent.com/d7dab2658d76e460e31be249de2fe5d420f7a7237eb9f2a315f83123632a3b6c/68747470733a2f2f617373656761697068702e636f6d2f696d616765732f6c6f676f732f6c6f676f2d63726f707065642e706e67)](https://assegaiphp.com/)

 [![Latest release](https://camo.githubusercontent.com/72b106f8f31b2e0ec746e3b3375d74b3e71d4a7c10ae1ea2ccbcd360e671695a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f617373656761697068702f7574696c3f646973706c61795f6e616d653d74616726736f72743d73656d766572267374796c653d666c61742d737175617265)](https://github.com/assegaiphp/util/releases) [![Tests](https://camo.githubusercontent.com/5c43523f83c90d3139b6b81555db63de426d1c62991268165c5682a8d51e9e1b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f617373656761697068702f7574696c2f7068702e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/assegaiphp/util/actions/workflows/php.yml) [![PHP 8.4+](https://camo.githubusercontent.com/51482859d8bb7cd31d259f58cf02b8eb7e56c51ad36c462afa3484f3b7a8fc2c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e342532422d3737374242343f7374796c653d666c61742d737175617265266c6f676f3d706870266c6f676f436f6c6f723d7768697465)](https://camo.githubusercontent.com/51482859d8bb7cd31d259f58cf02b8eb7e56c51ad36c462afa3484f3b7a8fc2c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e342532422d3737374242343f7374796c653d666c61742d737175617265266c6f676f3d706870266c6f676f436f6c6f723d7768697465) [![License](https://camo.githubusercontent.com/cd534f05d4dae454ca3049bab37cdb8d7ba51084055a1e3f8fd49d3304aff730/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f617373656761697068702f7574696c3f7374796c653d666c61742d737175617265)](https://github.com/assegaiphp/util/blob/main/LICENSE) [![Status active](https://camo.githubusercontent.com/1214b36790042a591c22d285a8cbfdc3c33d1cbbbed099a0bca2f5edd79ca2a0/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7374617475732d6163746976652d3130623938313f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/1214b36790042a591c22d285a8cbfdc3c33d1cbbbed099a0bca2f5edd79ca2a0/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7374617475732d6163746976652d3130623938313f7374796c653d666c61742d737175617265)

A progressive [PHP](https://php.net) framework for building effecient and scalable server-side applications.

Description
-----------

[](#description)

The Assegai Util package is a PHP package that provides a collection of utility classes to simplify common tasks and enhance application development. It includes various utility classes that can be used to perform common tasks, such as working with arrays, strings, dates, and more.

Installation
------------

[](#installation)

The recommended way to install assegaiphp/util is through Composer. Run the following command in your terminal:

```
composer require assegaiphp/util
```

Usage
-----

[](#usage)

Once you have installed assegaiphp/util, you can start using its utility classes by simply importing them into your PHP code. For example, to use the ArrayUtil class, you would add the following line at the top of your PHP file:

```
use Assegai\Util\ArrayUtil;

$numericArray = [1, 2, 3, 4, 5];

if (ArrayUtil::contains($numericArray, 3)) {
    echo 'The array contains the value 3.';
} else {
    echo 'The array does not contain the value 3.';
}
```

You can then call any of the static methods of the ArrayUtil class to perform various array-related tasks.

Contribution workflow
---------------------

[](#contribution-workflow)

For commit and pull request conventions in this repo, see:

- [docs/commit-and-pr-guidelines.md](./docs/commit-and-pr-guidelines.md)

Contributing
------------

[](#contributing)

Contributions are welcome! If you find a bug or would like to request a new feature, please open an issue on the GitHub repository. If you would like to contribute code, please fork the repository and submit a pull request.

License
-------

[](#license)

assegaiphp/util is licensed under the MIT License. See the [LICENSE](LICENSE) file for more information.

###  Health Score

46

—

FairBetter than 92% of packages

Maintenance88

Actively maintained with recent releases

Popularity14

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 96% 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 ~158 days

Recently: every ~238 days

Total

7

Last Release

59d ago

PHP version history (2 changes)0.4.0PHP &gt;=8.2

0.9.0PHP &gt;=8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/b56f1a86c97a44aa8b6e391bdfff3e41895f2262f6fd9295195806a068921e23?d=identicon)[amasiye](/maintainers/amasiye)

---

Top Contributors

[![amasiye](https://avatars.githubusercontent.com/u/5607605?v=4)](https://github.com/amasiye "amasiye (24 commits)")[![amasiyelr](https://avatars.githubusercontent.com/u/141437318?v=4)](https://github.com/amasiyelr "amasiyelr (1 commits)")

### Embed Badge

![Health badge](/badges/assegaiphp-util/health.svg)

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

###  Alternatives

[mage2pro/currency-format

The «Price Format» extension for Magento 2

215.9k](/packages/mage2pro-currency-format)[garethellis/crontab-schedule-generator

A PHP library for generating crontab schedule strings using expressive code

107.8k](/packages/garethellis-crontab-schedule-generator)

PHPackages © 2026

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