PHPackages                             roquie/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. roquie/collection

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

roquie/collection
=================

Simple PHP Collection based on Laravel 5 Collection

0.1.11(10y ago)11.3kMITPHPPHP &gt;=5.5.0

Since Jun 20Pushed 9y ago1 watchersCompare

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

READMEChangelog (10)DependenciesVersions (13)Used By (0)

Collection
==========

[](#collection)

DEPRECATED. Please, use original laravel collection. This package no longer maintained.

Simple PHP Collection based on Laravel 5 Collection.

Install
-------

[](#install)

`composer require roquie/collection`

Usage (in progress ...)
-----------------------

[](#usage-in-progress-)

Five minutes example:

```
$array = [
    'foo' => [
        'one',
        'two',
        'three',
        'bar' => [
            1, 2, 3
        ],
        'clean' => '',
        'test1' => 'val2qq',
        'test2' => 'val2ww'
    ]
];

$collection = Collection::make($array);
//1
foreach($collection as $collect) {
    echo $collect['undefined_index']; // null
}

//2

$result = $collection->each(function($collect) {
    echo $collect['undefined_index']; // null
});

//3

$result = $collection->filter(function($collect) {
    return $collect->has('key');
});

//4. get items using "dot" notation
$collection->get('foo.0', );
$collection->getArray('foo.0'); // return [] if empty
$collection->getInteger('foo.0'); // return 0 if empty
$collection->getBoolean('foo.0'); // return false if empty
$collection->getString('foo.0'); // return '' if empty

//5. remove item using "dot" notation
$collection->rm('foo.bar'); // delete an item

//6. has item using "dot" notation
$collection->rm('foo.bar'); // true (if not delete :) )
$collection->forgot('foo.bar'); //alias

//7. clean array

$collection->clean(); // key foo.clean deleted.
$collection->clean('val'); // keys foo.test1 and 2 will be removed

//8. set an item using "dot" notation

$collection->set('baz', ['key' => 'is awesome']);
$collection->put($key, $value); //alias
```

License
-------

[](#license)

MIT

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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.

###  Release Activity

Cadence

Every ~16 days

Recently: every ~30 days

Total

12

Last Release

3812d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/35d8eff4a3e66b58f3e2af56fe948035469de1e19ac29c532d65c681955bbd18?d=identicon)[Roquie](/maintainers/Roquie)

---

Top Contributors

[![roquie](https://avatars.githubusercontent.com/u/3214290?v=4)](https://github.com/roquie "roquie (22 commits)")

---

Tags

laravelcollectionroquie

### Embed Badge

![Health badge](/badges/roquie-collection/health.svg)

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

###  Alternatives

[pragmarx/coollection

Laravel Illuminate collection with objectified properties

943.4M11](/packages/pragmarx-coollection)[pragmarx/ia-collection

Laravel Illuminate Agnostic Collection

473.4M2](/packages/pragmarx-ia-collection)[armincms/json

A Laravel Nova field.

25149.4k3](/packages/armincms-json)[lazerg/laravel-enum-pro

A powerful PHP enum extension with collection support, random selection, and magic static calls

4319.0k](/packages/lazerg-laravel-enum-pro)[werxe/laravel-collection-macros

Custom Laravel Collection macros.

2625.8k](/packages/werxe-laravel-collection-macros)[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)
