PHPackages                             coderius/php-helpers - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. coderius/php-helpers

ActiveLibrary[Testing &amp; Quality](/categories/testing)

coderius/php-helpers
====================

Provides php helpers.

v0.0.2(3y ago)07MITPHPPHP ^7.2.0|^8.0

Since Apr 1Pushed 3y ago1 watchersCompare

[ Source](https://github.com/coderius/php-helpers)[ Packagist](https://packagist.org/packages/coderius/php-helpers)[ RSS](/packages/coderius-php-helpers/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

PHP HELPERS
===========

[](#php-helpers)

- **ArrayHelper**

### ArrayHelper usage:

[](#arrayhelper-usage)

- ArrayHelper::toArray($object, $properties = \[\], $recursive = true)
- ArrayHelper::merge($ar, $ar2)
- ArrayHelper::getValue($array, $key, $default = null)
- ArrayHelper::setValue(&amp;$array, $path, $value)
- ArrayHelper::remove(&amp;$array, $key, $default = null)
- ArrayHelper::removeValue(&amp;$array, $value)
- ArrayHelper::index($array, $key, $groups = \[\])
- ArrayHelper::getColumn($array, $name, $keepKeys = true)
- ArrayHelper::map($array, $from, $to, $group = null)
- ArrayHelper::keyExists($key, $array, $caseSensitive = true)
- ArrayHelper::multisort(&amp;$array, $key, $direction = SORT\_ASC, $sortFlag = SORT\_REGULAR)
- ArrayHelper::htmlEncode($data, $valuesOnly = true, $charset = null)
- ArrayHelper::htmlDecode($data, $valuesOnly = true)
- ArrayHelper::isAssociative($array, $allStrings = true)
- ArrayHelper::isIndexed($array, $consecutive = false)
- ArrayHelper::isIn($needle, $haystack, $strict = false)
- ArrayHelper::isTraversable($var)
- ArrayHelper::isSubset($needles, $haystack, $strict = false)
- ArrayHelper::filter($array, $filters)
- ArrayHelper::recursiveSort(array &amp;$array, $sorter = null)

Usage examples for ArrayHelper see in tests [tests/Unit/ArrayHelperTest.php](tests/Unit/ArrayHelperTest.php)

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Run the command in the terminal:

```
composer require "coderius/php-helpers"

```

Testing
-------

[](#testing)

- Go to root folder in terminal and run tests:

```
php ./vendor/bin/phpunit

```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 92.9% 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 ~0 days

Total

2

Last Release

1143d ago

### Community

Maintainers

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

---

Top Contributors

[![coderius](https://avatars.githubusercontent.com/u/36597893?v=4)](https://github.com/coderius "coderius (13 commits)")[![CodWorker](https://avatars.githubusercontent.com/u/93979538?v=4)](https://github.com/CodWorker "CodWorker (1 commits)")

---

Tags

composercomposer-packagehelper-functionsphp7phpunitphpunit-testsphphelpers

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/coderius-php-helpers/health.svg)

```
[![Health](https://phpackages.com/badges/coderius-php-helpers/health.svg)](https://phpackages.com/packages/coderius-php-helpers)
```

###  Alternatives

[vimeo/psalm

A static analysis tool for finding errors in PHP applications

5.8k77.5M6.7k](/packages/vimeo-psalm)[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.4k43.5M5.2k](/packages/larastan-larastan)[dave-liddament/sarb

Provides tools for baselining static analysis results and comparing against that baseline

1651.4M](/packages/dave-liddament-sarb)[letsdrink/ouzo-goodies

Utility classes, test assertions and mocking framework extracted from Ouzo framework.

132617.9k7](/packages/letsdrink-ouzo-goodies)[quizlet/hammock

Hammock is a stand-alone mocking library for Hacklang.

27445.5k](/packages/quizlet-hammock)[doppiogancio/mocked-client

A simple way to mock a client

2174.9k3](/packages/doppiogancio-mocked-client)

PHPackages © 2026

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