8000 GitHub - italolelis/collections at v4.1.5
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Jun 20, 2018. It is now read-only.

italolelis/collections

Repository files navigation

Collections

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/.

About

Collections Abstraction library for PHP

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 6

Languages

0