The PHP Collections project provides a handful of interfaces and reference implementations for basic collection objects (sets, maps, lists, etc.) implemented in PHP. These interfaces and classes work together to provide a standard API for PHP collection objects that developers can leverage in their own applications.
Currently PHP Collections includes interfaces for:
- Collection
- Comparator
- List
- Map
- Set
Since the PHP Collections project was inspired by the Java Collections Framework and the .NET System.Collections namespace, it assumes familiarity with one or both of these languages' collections classes. Some day soon we hope to provide more tutorials and PHP Collections specific documentation to help new developers get started with using a collections framework.