Skip to content

mundanity/collection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Scrutinizer Code Quality

A simple PHP based collection.

Usage

For basic usage, use the provided base class of Collection or KeyedCollection. Each class has a mutable counterpart.

<?php

$collection = new Collection([1, 2, 3]);
$collection->has(2); // true

$mutable = MutableCollection::fromCollection($collection);
$mutable->remove(2);
$mutable->has(2); // false