mundanity/collection

A simple PHP based collection.

Maintainers

Package info

github.com/mundanity/collection

pkg:composer/mundanity/collection

Statistics

Installs: 90 167

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 1

v1.0.0 2018-02-07 14:17 UTC

This package is not auto-updated.

Last update: 2026-03-15 13:02:04 UTC


README

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