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

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

reekoheek/util
==============

php common utility library

1.3.0(7y ago)02.7k5MITPHP

Since Oct 9Pushed 7y ago1 watchersCompare

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

READMEChangelogDependencies (4)Versions (17)Used By (5)

php-util
========

[](#php-util)

PHP Common Utility Library

Collection
----------

[](#collection)

Collection is an object that wrap associative array, and work like an associative array.

Collection is json serializer aware. See, [JsonKit](https://github.com/reekoheek/php-jsonkit).

Example

```
use ROH\Util\Collection;

// instantiate empty collection
$collection = new Collection();

// instantiate filled collection
$filledCollection = new Collection([
    'foo' => 'bar'
]);

// define attribute
$collection['subCollection'] = $filledCollection;

// get foo of sub collection attribute from parent collection attribute
echo $collection['subCollection']['foo'];
```

Composition
-----------

[](#composition)

Compose array of callable / function to be called later as sequence of function call.

Inflector
---------

[](#inflector)

Inflection library

Injector
--------

[](#injector)

Simple dependency injector

Options
-------

[](#options)

Compose options from array, or configuration files

StringFormatter
---------------

[](#stringformatter)

Format string from string template

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity71

Established project with proven stability

 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 ~117 days

Recently: every ~207 days

Total

16

Last Release

2843d ago

Major Versions

0.1.2 → 1.0.02015-09-29

### Community

Maintainers

![](https://www.gravatar.com/avatar/9ccba8ab264c930769a607c77fd9ad54731fb85847278488cc1f6d283130df0c?d=identicon)[reekoheek](/maintainers/reekoheek)

---

Top Contributors

[![reekoheek](https://avatars.githubusercontent.com/u/299394?v=4)](https://github.com/reekoheek "reekoheek (15 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[spatie/emoji

Display emoji characters

4671.2M32](/packages/spatie-emoji)

PHPackages © 2026

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