PHPackages                             mstevz/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. mstevz/collection

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

mstevz/collection
=================

Allows the creation of a collection providing an easier data manipulation.

v1.1(8y ago)245MITPHPPHP ^7.0

Since Mar 27Pushed 5y ago1 watchersCompare

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

READMEChangelog (2)DependenciesVersions (4)Used By (0)

Collection | [![Build Status](https://camo.githubusercontent.com/67e5310f2892bb8c2997bed964ba346035420dde68744400dfd02ab9b0869aa7/68747470733a2f2f7472617669732d63692e6f72672f6d737465767a2f636f6c6c656374696f6e2e7376673f6272616e63683d646576656c6f706d656e74)](https://travis-ci.org/mstevz/collection) [![GitHub](https://camo.githubusercontent.com/2a0f46dee0504b6d06b181576ec2283e7fbb588bdc740f4205e8fab34cbb9cfb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d737465767a2f636f6c6c656374696f6e)](https://camo.githubusercontent.com/2a0f46dee0504b6d06b181576ec2283e7fbb588bdc740f4205e8fab34cbb9cfb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d737465767a2f636f6c6c656374696f6e) [![Packagist Version](https://camo.githubusercontent.com/a59e5ecc07e2a7b6933c61df3d43ca2b306f742afdbbbb684b97f4a919ab8ff1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d737465767a2f636f6c6c656374696f6e3f6c6162656c3d6c617465737425323076657273696f6e)](https://camo.githubusercontent.com/a59e5ecc07e2a7b6933c61df3d43ca2b306f742afdbbbb684b97f4a919ab8ff1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d737465767a2f636f6c6c656374696f6e3f6c6162656c3d6c617465737425323076657273696f6e)
============================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#collection----)

*Description*

---------------

[](#description)

Allows the creation of a collection giving an easier data manipulation.

- [Wiki Home](https://github.com/mstevz/collection/wiki)
- [Documentation](https://github.com/mstevz/collection/wiki/Documentation)

*Highlights*

--------------

[](#highlights)

- Access your data via associative key or index position!
- Work your object as if it was an array.
- Fast iteration methods.
- Easily add json values to your collection.
- Convert your collection to json string.
- Serialize and deserialize your collection.

*Installation*

----------------

[](#installation)

This project uses **composer** for its installation.

You can add this project via cmd/terminal. While in your project root folder location, type this command:

```
composer require mstevz/collection

```

If your wish to add it in your composer.json file just add it to your "require" object as such:

```
"require":{
     "mstevz/collection":"*"
}
```

Bug report
----------

[](#bug-report)

If you find any bug please create a **new issue** and give you as **many details** as you can provide, such as:

- Relevant snippet of your code
- What were you trying to achieve
- Message error
- Stack trace

Please let me know by posting [here](https://github.com/mstevz/collection/issues).

*License*

-----------

[](#license)

This repository is licensed under: [MIT License](https://github.com/mstevz/collection/blob/1.x/LICENSE).

If you are to use this project, please let me know and read the [license](https://github.com/mstevz/collection/blob/master/LICENSE). Thank you.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

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

Total

3

Last Release

2027d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10255122?v=4)[Miguel Esteves](/maintainers/mstevz)[@mstevz](https://github.com/mstevz)

---

Top Contributors

[![mstevz](https://avatars.githubusercontent.com/u/10255122?v=4)](https://github.com/mstevz "mstevz (1 commits)")

---

Tags

arrayarraysclasscollectionindexindexerlistsmstevzobjectobjectsphpphp7phparraycollectionvectorsLists

### Embed Badge

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

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

###  Alternatives

[aimeos/map

Easy and elegant handling of PHP arrays as array-like collection objects similar to jQuery and Laravel Collections

4.2k412.9k11](/packages/aimeos-map)[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)
