easyframework/collections

Easy Framework Collection Component

Installs: 5 413

Dependents: 15

Stars: 15

Watchers: 6

Forks: 5

Language: PHP

v4.0.0 2015-02-21 11:39 UTC

README

Build Status Scrutinizer Code Quality Code Coverage Latest Stable Version Downloads

SensioLabsInsight

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

{
    "require": {
        "easyframework/collections": "~4.0"
    }
}

Usage

The Collection Class

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

  $collection = new Collections\ArrayList();
  $collection->add('John');
  $collection->add('Maria');
  $collection->add('Anderson');

  $collection->each(function($item){
        echo $item;
  });

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.

Documentation

More information can be found in the online documentation at http://collections.readthedocs.org/.