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

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

aaronbullard/collections
========================

Generic class to make a collection of any object type.

0155PHP

Since Jun 16Pushed 9y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (2)Used By (0)

Collection
==========

[](#collection)

A base Collection class that when extended will ensure that all items added to the collection are of a single type. Type can be determined by a static property or inferred from the extended classes namespace.

Getting started
---------------

[](#getting-started)

Clone repo.

#### Install dependencies

[](#install-dependencies)

From within the cloned folder `collections` run:

Composer dependencies

```
composer install

```

#### Testing

[](#testing)

```
composer test

```

Usage
-----

[](#usage)

```
