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

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

fschaechter/php-collection
==========================

A library for handling sets of data

2.3.1(11y ago)018GPL-3.0PHP &gt;=5.3.10

Since Aug 26Pushed 11y ago23 watchersCompare

[ Source](https://github.com/i22-internetagentur/php-collection)[ Packagist](https://packagist.org/packages/fschaechter/php-collection)[ Docs](http://github.com/fschaechter/php-collection)[ RSS](/packages/fschaechter-php-collection/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (7)Versions (8)Used By (0)

PHP-Collection
==============

[](#php-collection)

PHP-Collection is an easy to use library for handling sets of data with support for filtering, sorting and reducing the data sets.

The class Collection extends [PHP's](https://php.net "PHP") [ArrayObject](https://php.net/manual/en/class.arrayobject.php "PHP's manual entry for ArrayObject") and so brings a little extra to the table.

[![Build Status](https://camo.githubusercontent.com/2732d0ee120946366465cc0a950fb25a18510b3b0e9094f915586b0de5287614/68747470733a2f2f7472617669732d63692e6f72672f66736368616563687465722f7068702d636f6c6c656374696f6e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/fschaechter/php-collection)

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

[](#installation)

You can just clone the repository and use it as you see fit or use [Composer](https://getcomposer.org "Composer") and handle the dependency management very efficiently.

### Composer

[](#composer)

Append the following line to the [require-key](https://getcomposer.org/doc/01-basic-usage.md#the-require-key) of your *composer.json* file.

```
"fschaechter/php-collection": "~2"

```

Issues and bugs
---------------

[](#issues-and-bugs)

You can report bugs, problems and other issues [here](https://github.com/fschaechter/php-collection/issues). Every useful bit is very much appreciated.

Tutorial
--------

[](#tutorial)

First you need a some data and create a collection.

```
