PHP iterator Libraries
Php-file-iterator - FilterIterator implementation that filters files based on a list of suffixes, prefixes, and other exclusion criteria.
php-file-iterator Installation You can add this library as a local, per-project dependency to your project using Composer: composer require phpunit/ph
Efficient, easy-to-use, and fast PHP JSON stream parser
JSON Machine Very easy to use and memory efficient drop-in replacement for inefficient iteration of big JSON files or streams for PHP 5.6+. See TL;DR.