PHPackages                             nabeghe/arrayer - 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. nabeghe/arrayer

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

nabeghe/arrayer
===============

An array helper for PHP. It includes some useful methods and possibly other features.

v1.0.4(10mo ago)33MITPHPPHP &gt;=7.4

Since Jul 2Pushed 10mo ago1 watchersCompare

[ Source](https://github.com/nabeghe/arrayer-php)[ Packagist](https://packagist.org/packages/nabeghe/arrayer)[ Docs](https://github.com/nabeghe/arrayer-php)[ RSS](/packages/nabeghe-arrayer/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

Arrayer (Array Helper for PHP)
==============================

[](#arrayer-array-helper-for-php)

> An array helper for PHP. It includes some useful methods and possibly other features.

Some of the methods from the Arr class of the Laravel framework are also included in this library; however, some of them have been modified.

---

🫡 Usage
-------

[](#-usage)

### 🚀 Installation

[](#-installation)

You can install the package via composer:

```
composer require nabeghe/arrayer
```

---

### Arr Class

[](#arr-class)

The main class that includes the useful methods is `Nabegh\Arrayer\Arr`.

#### Example:

[](#example)

```
use Nabeghe\Arrayer\Arrayer;

$data1 = ['key_1' => 'value_1', 'key_3' => ['key_3_1' => 'value_3_1']];

$data2 = ['key_2' => 'value_2'];

$data3 = ['key_3' => ['key_3_2' => 'value_3_2']];

$arrayer = new Arrayer();

print_r($arrayer->merge($data1, $data2, $data3)->data);

/*
    Array
    (
        [key_1] => value_1
        [key_3] => Array
            (
                [key_3_1] => value_3_1
                [key_3_2] => value_3_2
            )

        [key_2] => value_2
    )
 */
```

---

### Arrayer Class

[](#arrayer-class)

Accepts any value, converts it to an array via `Arr::cast`, stores it, and returns it via `data` property.

It is possible to access the methods of the `Arr` class through the `Arrayer` object as well, with the difference that the main array parameter is no longer present.

Additionally, the `ArrayAccess` and `JsonSerializable` interfaces have also been implemented on `Arrayer` class.

---

📖 License
---------

[](#-license)

Licensed under the MIT license, see [LICENSE.md](LICENSE.md) for details.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance54

Moderate activity, may be stable

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

320d ago

### Community

Maintainers

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

---

Top Contributors

[![nabeghe](https://avatars.githubusercontent.com/u/12207627?v=4)](https://github.com/nabeghe "nabeghe (6 commits)")

---

Tags

arrayarrayslibraryphpphp-arrayphp-arraysphp-libphplibphplibrariesphplibraryhelperarraylibrarysupportarray helperarray utilsarray merge

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/nabeghe-arrayer/health.svg)

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

###  Alternatives

[clausnz/php-helpers

A Collection of useful php helper functions.

388.7k](/packages/clausnz-php-helpers)[iteks/laravel-enum

A comprehensive Laravel package providing enhanced enum functionalities, including attribute handling, select array conversions, and fluent facade interactions for robust enum management in Laravel applications.

2516.7k](/packages/iteks-laravel-enum)

PHPackages © 2026

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