2017 © Pedro Peláez
 

library collection

Simple collections in PHP

image

jjgrainger/collection

Simple collections in PHP

  • Monday, March 12, 2018
  • by jjgrainger
  • Repository
  • 1 Watchers
  • 1 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Collection v1.1

A collection class for working with arrays, (*1)

Build Status Total Downloads Latest Stable Version License, (*2)

Principles

  • Immutable - Most methods return a new collection, leaving the previous untouched
  • Chainable - Methods can be chained to create fluent mapping and reduce original collection

Requirements

Installation

$ composer require jjgrainger/collection

Usage

$collection = new Collection([1, 2, 3]);

$total = $collection->sum(); // 6

Notes

Author

Joe Grainger, (*3)

The Versions

12/03 2018

dev-master

9999999-dev https://github.com/jjgrainger/collection

Simple collections in PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

12/03 2018

1.0

1.0.0.0 https://github.com/jjgrainger/collection

Simple collections in PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires