PHPackages                             perf/enumeration - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. perf/enumeration

AbandonedLibrary[Utility &amp; Helpers](/categories/utility)

perf/enumeration
================

Enumeration classes: map and collection, both with mutable and immutable behavior.

1.0.2(9y ago)194MITPHPPHP &gt;=5.3.3

Since Apr 24Pushed 9y ago1 watchersCompare

[ Source](https://github.com/jmfeurprier/perf-enumeration)[ Packagist](https://packagist.org/packages/perf/enumeration)[ RSS](/packages/perf-enumeration/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (6)Versions (5)Used By (0)

perf-enumeration
================

[](#perf-enumeration)

This library allows to interact with specialized arrays: collections and maps, which can be declared mutable or immutable.

Collections are arrays which consist of a list of values, with numeric indexes (keys). Maps are arrays which consist of key-value pairs. When a collection or a map is declared "mutable", it is allowed to alter its content (ie, add, set or remove values). When a collection or a map is declared "immutable", it is not allowed to alter its content.

Installation &amp; Requirements
-------------------------------

[](#installation--requirements)

There are no dependencies on other libraries.

Install with [Composer](http://getcomposer.org):

```
{
	"require":
	{
		"perf-enumeration" : "~1.0"
	}
}
```

Usage
-----

[](#usage)

### Collections

[](#collections)

#### Basic operations

[](#basic-operations)

```
