library collections
PHP Collection Classes
epfremme/collections
PHP Collection Classes
- Monday, January 16, 2017
- by epfremmer
- Repository
- 2 Watchers
- 0 Stars
- 165 Installations
- PHP
- 1 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 4 Versions
- 0 % Grown
PHP Collections
, (*1)
Overview
This library was intended to provide base PHP collection classes that can be extended to provide
application specific functionality., (*2)
There are 3 main collection classes provided by default:, (*3)
- BaseCollection - This is a basic iterable collection very similar in capabilities to ArrayObject
- Collection - An extension of BaseCollection with added methods for conventional array access & modifications
- ImmutableCollection - Another extension of BaseCollection but with all remove/write capabilities disabled
The primary components of each collection is also included as PHP traits to assist in the creation of
any custom collection classes that can't simply extend one of the included collection class objects. Each of
the traits included is designed to meet SPL Traversable Interface methods. Each trait has the expectation that
the class using it can access an $elements member variable on the collection class., (*4)
Collection Traits
- ArrayAccessTrait - Satisfies SPL ArrayAccess Interface
- ClearableTrait - Adds methods to clear and test emptiness of collections
- CountableTrait - Satisfies SPL Countable Interface
- IterableTrait - Satisfies SPL Iterator Interface
- SearchableTrait - Adds methods to better search & filter collections
- SeekableTrait - Satisfies SPL SeekableIterator Interface (also requires IterableTrait)
Installation
composer require epfremme/collections
composer install
dev-master
9999999-dev
PHP Collection Classes
Sources
Download
MIT
The Requires
The Development Requires
by
epfremme
v1.0.2
1.0.2.0
PHP Collection Classes
Sources
Download
MIT
The Requires
The Development Requires
by
epfremme
v1.0.1
1.0.1.0
PHP Collection Classes
Sources
Download
MIT
The Development Requires
by
epfremme
v1.0.0
1.0.0.0
PHP Collection Classes
Sources
Download
MIT
The Development Requires
by
epfremme