PHPackages                             seffeng/arr-helper - 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. seffeng/arr-helper

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

seffeng/arr-helper
==================

PHP extension array helper

v0.1.4(2y ago)01.9k4MITPHPPHP &gt;=7.1

Since Aug 25Pushed 2y ago1 watchersCompare

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

READMEChangelog (5)Dependencies (1)Versions (6)Used By (4)

PHP Helpers
-----------

[](#php-helpers)

### 安装

[](#安装)

```
# 安装
$ composer require seffeng/arr-helper
```

### 目录说明

[](#目录说明)

```
|---src
|   |   Arr.php
|   |   ReplaceArrayValue.php
|   |   UnsetArrayValue.php
|   |---Traits
|           ArrTrait.php
|---tests
|       ArrTest.php

```

### 示例

[](#示例)

```
/**
 * TestController.php
 * 示例
 */
namespace App\Http\Controllers;

use Seffeng\ArrHelper\Arr;
use Seffeng\ArrHelper\ReplaceArrayValue;

class TestController extends Controller
{
    public function index()
    {
        $arr = [
            'a' => [
                'b' => [
                    'c' => 'ccc'
                ]
            ],
            'd' => [
                'b' => 'ccc',
                'e' => [
                    'f' => 'hhh'
                ]
            ]
        ];
        echo '';
        var_dump(Arr::getValue($arr, 'a.b.c', ''));
        var_dump(Arr::getDepth($arr));
        print_r(Arr::getColumn($arr, 'b'));
        print_r($arr);
        print_r(Arr::merge($arr, [
            'd' => new ReplaceArrayValue(['hhh' => 'iii']),
            'i' => [
                'j' => 'kkk'
            ]
        ]));
    }
}
```

### 备注

[](#备注)

1、更多示例请参考 tests 目录下测试文件。

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community13

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

Every ~85 days

Total

5

Last Release

1021d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/30b3d8cc986a1ad37a55169b11812fea1cae31430dd8dbe1b3436dc58cc885bd?d=identicon)[seffeng](/maintainers/seffeng)

---

Top Contributors

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

---

Tags

phplaravelarrayhelperslumenseffeng

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/seffeng-arr-helper/health.svg)

```
[![Health](https://phpackages.com/badges/seffeng-arr-helper/health.svg)](https://phpackages.com/packages/seffeng-arr-helper)
```

###  Alternatives

[kra8/laravel-snowflake

Snowflake for Laravel and Lumen.

188402.3k6](/packages/kra8-laravel-snowflake)[pragmarx/ia-arr

Laravel Illuminate Agnostic Arr

553.6M12](/packages/pragmarx-ia-arr)

PHPackages © 2026

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