PHPackages                             easyframework/collections - 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. easyframework/collections

AbandonedArchivedLibrary[Framework](/categories/framework)

easyframework/collections
=========================

Collections Abstraction library for PHP

v7.0.0(9y ago)64307.6k—4.8%14[1 issues](https://github.com/italolelis/collections/issues)19MITPHPPHP &gt;=5.6.0

Since Nov 17Pushed 9y ago8 watchersCompare

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

READMEChangelog (10)Dependencies (3)Versions (41)Used By (19)

Collections
===========

[](#collections)

[![Build Status](https://camo.githubusercontent.com/c01c917769055970802a1ced27c93654d11c8ec5a5dc88ade499c14b3cca7e31/68747470733a2f2f7472617669732d63692e6f72672f6974616c6f6c656c69732f636f6c6c656374696f6e732e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/italolelis/collections)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/09544c9f357f78c8350192e282c41ebba16eb5daf53fd6033d5d8666778c7622/687474703a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6974616c6f6c656c69732f636f6c6c656374696f6e732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/italolelis/collections/)[![Code Coverage](https://camo.githubusercontent.com/6650ae94f7117170dd7dff9330afc626da7634a2660bf6c02f0b92241e59ebc3/687474703a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6974616c6f6c656c69732f636f6c6c656374696f6e732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/italolelis/collections/)[![Latest Stable Version](https://camo.githubusercontent.com/e7ac886de3f73213525bf13a920a90326201306a7c6cb865dcf7a21fb9910dc4/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f656173796672616d65776f726b2f636f6c6c656374696f6e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/easyframework/collections)[![Downloads](https://camo.githubusercontent.com/7498b02708ade655fdc527171a6f05bba29b3ed8740b8cc430f911911708109f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f656173796672616d65776f726b2f636f6c6c656374696f6e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/easyframework/collections)

Collections Abstraction library for PHP

The Collection library is one of the most useful things that many modern languages has, but for some reason PHP doesn't has a built in collection layer.

For that reason we created Collections, an incredible library that gathers the best of .NET's and Java's collections patterns and unify it with PHP array power.

Take a look and see what we're talking about!!

Install
-------

[](#install)

```
composer require easyframework/collections
```

Usage
-----

[](#usage)

### The Collection Class

[](#the-collection-class)

The Collection represents the List in .NET language or simply non-associative arrays in php:

```
  $person1 = new \stdClass();
  $person1->name = 'John';
  $person1->age = 25;

  $person2 = new \stdClass();
  $person2->name = 'Maria';
  $person2->age = 30;

  $person3 = new \stdClass();
  $person3->name = 'Anderson';
  $person3->age = 15;

  $collection = new Collections\Vector();
  $collection->add($person1);
  $collection->add($person2);
  $collection->add($person3);

  $collection->filter(function($person){
        return $person->age > 18;
  })->each(function($item){
        echo $item->name; //John and Maria
  });
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](https://github.com/italolelis/collections/blob/master/CONTRIBUTING.md) for details.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](https://github.com/italolelis/collections/blob/master/LICENSE) for more information.

### Documentation

[](#documentation)

More information can be found in the online documentation at .

###  Health Score

45

—

FairBetter than 93% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity49

Moderate usage in the ecosystem

Community30

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 96.3% 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 ~28 days

Recently: every ~43 days

Total

40

Last Release

3443d ago

Major Versions

v2.2.0 → v3.0.02014-08-26

3.2.x-dev → v4.0.02015-02-21

v4.1.8 → 5.0.0-beta2016-04-06

v5.0.5 → v6.0.02016-06-27

5.x-dev → v7.0.02016-12-13

PHP version history (3 changes)v1.0.0PHP &gt;=5.3.14

v4.1.4PHP &gt;=5.4.0

v6.0.0PHP &gt;=5.6.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1108049?v=4)[Ítalo Vietro](/maintainers/italolelis)[@italolelis](https://github.com/italolelis)

---

Top Contributors

[![italolelis](https://avatars.githubusercontent.com/u/1108049?v=4)](https://github.com/italolelis "italolelis (257 commits)")[![kieranajp](https://avatars.githubusercontent.com/u/681426?v=4)](https://github.com/kieranajp "kieranajp (5 commits)")[![jhoughtelin](https://avatars.githubusercontent.com/u/6137941?v=4)](https://github.com/jhoughtelin "jhoughtelin (2 commits)")[![robert-kel-tg](https://avatars.githubusercontent.com/u/8992903?v=4)](https://github.com/robert-kel-tg "robert-kel-tg (2 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (1 commits)")

---

Tags

frameworkcollectioneasygenerics

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/easyframework-collections/health.svg)

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

###  Alternatives

[runn/core

Runn Me! Core Library

3128.9k7](/packages/runn-core)[originphp/framework

The OriginPHP framework

472.6k6](/packages/originphp-framework)[cse/helpers-session

The helpers allows you to easily manage session data. START, SET, GET DELETE, HAS method session - all this is available in this library.

102.6k3](/packages/cse-helpers-session)

PHPackages © 2026

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