abetzi / file-lines-iterator
There is no license information available for the latest version (dev-master) of this package.
Fast file line iterator
dev-master
2019-11-06 22:59 UTC
Requires
- php: ^7.2
Requires (Dev)
- phpunit/phpunit: ^8
This package is auto-updated.
Last update: 2025-03-08 10:53:43 UTC
README
TBD - something like
composer install abetzi/file-lines-iterator
Usage
$file = '/path/to/iterated/file';
$lines = FileLinesIterator::getInstance($file)->lines();
foreach($lines as $line) {
// do something useful with read line
}
Benchmarks
TBD - compare with usual methods