The repository provides two PHP interfaces for iterable collections:
CollectionInterfacefor simple collectionsCountableCollectionInterfacefor countable collections
This library is available through Packagist and can be installed using Composer:
composer require codeinc/collection-interfaceThis library is published under the MIT license (see the LICENSE file).