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

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

mgocobachi/collection
=====================

A Collection class to manipulate the arrays with enriched routines and the ability of executing them in chain

v1.0.1(9y ago)0251MITPHPPHP ^7.1

Since Feb 25Pushed 9y ago1 watchersCompare

[ Source](https://github.com/mgocobachi/collection)[ Packagist](https://packagist.org/packages/mgocobachi/collection)[ Docs](https://www.github.com/mgocobachi/collection)[ RSS](/packages/mgocobachi-collection/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (1)Versions (3)Used By (1)

[![Build Status](https://camo.githubusercontent.com/4b60f7056b74a74e3c033014033ddbb441eddca1f24178d8d563d161c797ed9b/68747470733a2f2f7472617669732d63692e6f72672f6d676f636f62616368692f636f6c6c656374696f6e2e737667)](https://travis-ci.org/mgocobachi/collection)[![Latest Stable Version](https://camo.githubusercontent.com/31db34571c11e84f3d4e7d6507aafea806056267c86ba1d1b68d020800595565/68747470733a2f2f706f7365722e707567782e6f72672f6d676f636f62616368692f636f6c6c656374696f6e2f762f737461626c652e737667)](https://packagist.org/packages/mgocobachi/collection)[![License](https://camo.githubusercontent.com/6db48b10c7775ab77a09485137b7f0b4b488b07921ce46992efbb1b032cf8087/68747470733a2f2f706f7365722e707567782e6f72672f6d676f636f62616368692f636f6c6c656374696f6e2f6c6963656e73652e737667)](https://packagist.org/packages/mgocobachi/collection)

Collection
==========

[](#collection)

A Collection class to manipulate the arrays with enriched routines and the ability of executing them in chain.

Helper
------

[](#helper)

The function 'collection()' exist and accept an array as parameter. This function creates a new Collection object and passing the array as parameter.

Examples
--------

[](#examples)

In this example, we want to get the first element of the array

```
