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

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

harp-orm/util
=============

General purpose helper methods

0.2.2(11y ago)11.2k[1 issues](https://github.com/harp-orm/util/issues)2BSD-3-ClausePHP

Since May 15Pushed 11y ago2 watchersCompare

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

READMEChangelog (4)DependenciesVersions (5)Used By (2)

Util
====

[](#util)

[![Build Status](https://camo.githubusercontent.com/b287e1062cf88a1d3d25bb90e8c41d9a72ff36bc2446f928827c6c14972896c7/68747470733a2f2f7472617669732d63692e6f72672f686172702d6f726d2f7574696c2e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/harp-orm/util)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/cfc0a6345966f46fffdc1231e91f437a25f198e2ebb8aa1322c8cf0438cf7717/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f686172702d6f726d2f7574696c2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/harp-orm/util/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/83a02f5b1cf24027947acf5c2416042c83e5633fb547ef321e07ea15155a2f65/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f686172702d6f726d2f7574696c2f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/harp-orm/util/?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/66aa113db1a3d8c00ef5fdbd0aa5f3f3147ce07636c1253ccfe45e29845d0cf3/68747470733a2f2f706f7365722e707567782e6f72672f686172702d6f726d2f7574696c2f762f737461626c652e706e67)](https://packagist.org/packages/harp-orm/util)

General purpose helper methods

Array Helpers
-------------

[](#array-helpers)

- **Arr::toAssoc** - convert a random array to a strict structure - every entry has a string key
- **Arr::invoke** - if the array holds only objects, aggregate the results of a method call on all the objects
- **Arr::pluckProperty** - aggregate the value of a property of each object in the array
- **Arr::pluckUniqueProperty** - aggregate the value of a property of each object in the array, only unique values
- **Arr::pluck** - aggregate all the values of entries with a given key
- **Arr::flatten** - flatten all the values of nested arrays
- **Arr::groupBy** - group by result of callback

SplObjectStorage Helpers
------------------------

[](#splobjectstorage-helpers)

- **Objects::invoke** - aggregate the results of a method call on all the objects
- **Objects::filter** - similar to array\_filter, but for SplObjectStorage
- **Objects::toArray** - convert SplObjectStorage into an array
- **Objects::fromArray** - convert an array into a SplObjectStorage
- **Objects::sort** - sort a SplObjectStorage using a comparation closure
- **Objects::groupBy** - change SplObjectStorage where the "key" object is the result of a callback, and all the other objects are grouped by them

License
-------

[](#license)

Copyright (c) 2014, Clippings Ltd. Developed by Ivan Kerin

Under BSD-3-Clause license, read LICENSE file.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity56

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

Total

4

Last Release

4322d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/506129?v=4)[Harry Dobrev](/maintainers/hkdobrev)[@hkdobrev](https://github.com/hkdobrev)

---

Top Contributors

[![ivank](https://avatars.githubusercontent.com/u/4976?v=4)](https://github.com/ivank "ivank (16 commits)")

### Embed Badge

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

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

###  Alternatives

[denismitr/translit

Russian-English Yandex transliteration package primarily for making slugs

147.1k2](/packages/denismitr-translit)

PHPackages © 2026

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