ellipse / utils-iterator-factory
This package is abandoned and no longer maintained.
No replacement package was suggested.
The iterator factory utility of the ellipse framework
dev-master / 1.0.x-dev
2017-09-27 09:14 UTC
Requires
- php: >=7.1
Requires (Dev)
- mockery/mockery: ^1.0@alpha
- peridot-php/leo: ^1.6
- peridot-php/peridot: ^1.19
This package is not auto-updated.
Last update: 2017-10-11 12:59:02 UTC
README
This package provides a class allowing to produce an instance of Iterator from an array, an instance of ArrayAccess or an instance of Traversable.
Require php >= 7.1
Installation composer require ellipse/utils-iterator-factory
Run tests ./vendor/bin/peridot tests
Usage
<?php use Ellipse\Utils\IteratorFactory; // Can take an array, an instance of ArrayAccess or an instance of Traversable. $iterator = IteratorFactory::create(['element1', 'element2']);