PHPackages                             mahdi-mohammadi/php-array - 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. mahdi-mohammadi/php-array

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

mahdi-mohammadi/php-array
=========================

Php Array Opertion Class

010PHP

Since Apr 18Pushed 11y ago1 watchersCompare

[ Source](https://github.com/Mahdi-Mohammadi/php-array)[ Packagist](https://packagist.org/packages/mahdi-mohammadi/php-array)[ RSS](/packages/mahdi-mohammadi-php-array/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

\#PHP Array

PHP class to Operation an Array

\#About v0.2

PHP have useful arrays function(like:array\_map, array\_diff,...) but I think those functions can be better and powerful so I write this class. My approach is like CakePHP Hash Utility Class.

\#Requirements

Php Array Requires **PHP &gt;= 5.4**

\#Installation

\##Using Composer

You can install this package using [composer](https://getcomposer.org). Add this package to your `composer.json`:

```
"require": {
	"mahdi-mohammadi/php-array": "dev-master"
}

```

or if you prefer command line, change directory to project root and:

```
php composer.phar require "mahdi-mohammadi/php-array":"dev-master"

```

\##Manual Installation

Get a copy of package source code. You can do this in two ways:

1. Download ZIP version of the source code and unzip it in desired location
2. Run `git clone https://github.com/mahdi-mohammadi/php-array.git` to clone this repository

After getting a copy of source code, it is enough to include `phpArray.class.php` where you need to use it.

```
require_once 'path/to/source/phpArray.class.php';
```

\#Examples

Please see [examples.php](examples.php) and [example-static.php](examples-static.php) for working examples.

\##License Hash Class was created by [CakePHP](http://cakephp.org) and released under the [MIT License](http://opensource.org/licenses/mit-license.php) so Php Array released under the [MIT License](http://opensource.org/licenses/mit-license.php) too.

Copyright (C) 2015 Mahdi Mohammadi

\#Resources

- [CakePhp Hash](http://book.cakephp.org/3.0/en/core-libraries/hash.html)

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/3e7e9d1aa368259ba91a7aaebd93af46f505a031ce18f413be2ddf0706f68538?d=identicon)[Mahdi-Mohammadi](/maintainers/Mahdi-Mohammadi)

---

Top Contributors

[![Ma-Mahdi](https://avatars.githubusercontent.com/u/5163548?v=4)](https://github.com/Ma-Mahdi "Ma-Mahdi (5 commits)")

### Embed Badge

![Health badge](/badges/mahdi-mohammadi-php-array/health.svg)

```
[![Health](https://phpackages.com/badges/mahdi-mohammadi-php-array/health.svg)](https://phpackages.com/packages/mahdi-mohammadi-php-array)
```

PHPackages © 2026

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