Download the PHP package bcremer/line-reader without Composer
On this page you can find all versions of the php package bcremer/line-reader. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download bcremer/line-reader
More information about bcremer/line-reader
Files in bcremer/line-reader
Download bcremer/line-reader
More information about bcremer/line-reader
Files in bcremer/line-reader
Vendor bcremer
Package line-reader
Short Description Read large files line by line in a memory efficient (constant) way.
License MIT
Package line-reader
Short Description Read large files line by line in a memory efficient (constant) way.
License MIT
Please rate this library. Is it a good library?
Informations about the package line-reader
LineReader
LineReader is a library to read large files line by line in a memory efficient (constant) way.
Install
Via Composer
Usage
Given we have a textfile (some/file.txt
) with lines like:
Also let's assume the namespace is imported to keep the examples dense:
Read forwards
The output will be:
To set an offset or a limit use the \LimitIterator
:
Will output line 3 to 7
Read backwards
Example: Read the last 5 lines in forward order:
Testing
License
The MIT License (MIT). Please see License File for more information.
All versions of line-reader with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.4 || ^8.0
The package bcremer/line-reader contains the following files
Loading the files please wait ....