PHPackages                             rgasch/illuminate-collection-extended - 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. [Framework](/categories/framework)
4. /
5. rgasch/illuminate-collection-extended

ActiveLibrary[Framework](/categories/framework)

rgasch/illuminate-collection-extended
=====================================

Extension class for Laravel's Collection class with some extra functionality.

v1.0.2(3y ago)14.0kMITPHPPHP ^8.1|^8.2

Since Nov 6Pushed 3y ago1 watchersCompare

[ Source](https://github.com/rgasch/illuminate-collection-extended)[ Packagist](https://packagist.org/packages/rgasch/illuminate-collection-extended)[ Docs](https://github.com/rgasch/illuminate-collection-extended)[ RSS](/packages/rgasch-illuminate-collection-extended/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (4)Versions (5)Used By (0)

rgasch/illuminate-collection-extended is a small extension to Laravel's Collection class that provides some extra functionality to the Collection class.

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

[](#installation)

The preferred method of installation is via Composer. Run the following command to install the package and add it as a requirement to your project's `composer.json`:

```
composer require rgasch/illuminate-collection-extended
```

Features
--------

[](#features)

The main feature of this class is that it implements the \_\_get() and \_\_set() methods on Collections. This means that you can get and set Collection elements using the '-&gt;' syntax. For example:

```
    $collection = new Rgasch\Collection(['a'=>0, 'b'=>1]);
    $a = $collection->a;
    print "a = $a\n";

```

The above code will retrieve the 'a' element of the Collection array and thus print "0".

It should be noted that retrieving elements via the '-&gt;' operator performs a test to verify that the element you are trying to retrieve actually exists; when trying to retrieve a non-existing element, an *InvalidArgumentException* will be thrown. The rationale for this behavior is that this will flag typos and other stupid mistakes when trying to access Collection elements.

Similarly, you can set elements using the "-&gt;" operator. For example:

```
    $collection = new Rgasch\Collection(['a'=>0, 'b'=>1]);
    $collection->a = -1;
    $collection->c = 2;

```

The above code will result in a collection containing *\[ 'a'=&gt;-1, 'b'=&gt;1, 'c'=&gt;2 \]*

This class also provides a *create* method which can be used to create a collection with from the provided input. This method also optionally accepts a second *boolean* parameter *recursive* which specifies whether nested arrays/objects should be converted to nested Collections. See *tests/CollectionTest.php* for more details on this.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

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

Total

3

Last Release

1142d ago

PHP version history (2 changes)v1.0.0PHP ^8.1

v1.0.2PHP ^8.1|^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/657a8663556c9228027378e96e032c628c18686f7a84129c7da4b2428b8ae82f?d=identicon)[robertgdev](/maintainers/robertgdev)

---

Top Contributors

[![robertgdev](https://avatars.githubusercontent.com/u/343614?v=4)](https://github.com/robertgdev "robertgdev (8 commits)")

---

Tags

frameworklaravelcollectionilluminate

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/rgasch-illuminate-collection-extended/health.svg)

```
[![Health](https://phpackages.com/badges/rgasch-illuminate-collection-extended/health.svg)](https://phpackages.com/packages/rgasch-illuminate-collection-extended)
```

###  Alternatives

[rebing/graphql-laravel

Laravel wrapper for PHP GraphQL

2.2k7.1M26](/packages/rebing-graphql-laravel)[graham-campbell/markdown

Markdown Is A CommonMark Wrapper For Laravel

1.3k7.1M64](/packages/graham-campbell-markdown)[graham-campbell/manager

Manager Provides Some Manager Functionality For Laravel

39221.1M134](/packages/graham-campbell-manager)[laravel-lang/publisher

Localization publisher for your Laravel application

2167.7M24](/packages/laravel-lang-publisher)[laravel-zero/framework

The Laravel Zero Framework.

3371.4M369](/packages/laravel-zero-framework)[defstudio/pest-plugin-laravel-expectations

A plugin to add laravel tailored expectations to Pest

98548.9k4](/packages/defstudio-pest-plugin-laravel-expectations)

PHPackages © 2026

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