PHPackages                             daikazu/laravel-recursive-collection - 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. daikazu/laravel-recursive-collection

ActiveLibrary

daikazu/laravel-recursive-collection
====================================

Convert nested arrays, associative, and multidimensional arrays into nested collections.

v1.0.11(2y ago)127.0k—3.8%MITPHP

Since Jun 20Pushed 2y ago1 watchersCompare

[ Source](https://github.com/daikazu/laravel-recursive-collection)[ Packagist](https://packagist.org/packages/daikazu/laravel-recursive-collection)[ RSS](/packages/daikazu-laravel-recursive-collection/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (2)Versions (10)Used By (0)

Laravel Recursive Collection
============================

[](#laravel-recursive-collection)

Convert nested arrays, associative, and multidimensional arrays into nested collections.

Install
-------

[](#install)

Install using composer.

```
composer require daikazu/laravel-recursive-collection
```

Setup
-----

[](#setup)

NOTE This package supports Laravel 5.5 auto-discovery, so you can skip the setup if you are using 5.5 and above.

And add the service provider in `config/app.php`:

```
Daikazu\Laravel\RecursiveCollectionServiceProvider::class,
```

Usage
-----

[](#usage)

```
$data = [
    "foo" => "bar",
    "a"   => [1, 2, 3],
    "b"   => [
        [1, 2, 3],
        [
            "4" => "",
            "5" => "",
            "3" => "",
        ],
    ],
];

$collection = (new Collection($data))->recursive();
$collection = collect($data)->recursive();
```

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity68

Established project with proven stability

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

Recently: every ~368 days

Total

9

Last Release

784d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4039367?v=4)[Mike Wall](/maintainers/daikazu)[@daikazu](https://github.com/daikazu)

---

Top Contributors

[![daikazu](https://avatars.githubusercontent.com/u/4039367?v=4)](https://github.com/daikazu "daikazu (15 commits)")

---

Tags

laravelcollectionslaravel-collectionlaravel-recursive-collection

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/daikazu-laravel-recursive-collection/health.svg)

```
[![Health](https://phpackages.com/badges/daikazu-laravel-recursive-collection/health.svg)](https://phpackages.com/packages/daikazu-laravel-recursive-collection)
```

###  Alternatives

[slowlyo/owl-admin

基于 laravel、amis 开发的后台框架~

61214.2k26](/packages/slowlyo-owl-admin)[webparking/laravel-type-safe-collection

This package provides type-safe extension of the laravel collection, forcing a single type of object.

378.2k](/packages/webparking-laravel-type-safe-collection)

PHPackages © 2026

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