Skip to content

hivemindaustralia/Collection

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Collection v1.0

A collection class for working with arrays

Build Status

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

  • PHP v5.3
  • Composer

Installation

$ composer require jjgrainger/collection

Usage

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

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

About

A PHP Collection class for working with arrays

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%