Download the PHP package ptachoire/tac without Composer
On this page you can find all versions of the php package ptachoire/tac. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download ptachoire/tac
More information about ptachoire/tac
Files in ptachoire/tac
Download ptachoire/tac
More information about ptachoire/tac
Files in ptachoire/tac
Vendor ptachoire
Package tac
Short Description Tac and tail library.
License MIT
Homepage https://github.com/krichprollsch/tac
Package tac
Short Description Tac and tail library.
License MIT
Homepage https://github.com/krichprollsch/tac
Please rate this library. Is it a good library?
Informations about the package tac
Tac
Tac is a tac and a tail php implementation for text files.
Usage
If /path/to/file contains
contains this :
abc
def
ghi
tac()
will return
$tac = new \Tac\Tac( '/path/to/file' );
var_dump($tac->tac(2));
/*
array(2) {
[0] =>
string(3) "ghi"
[1] =>
string(3) "def"
}
*/
tail()
will return
$tac = new \Tac\Tac( '/path/to/file' );
var_dump($tac->tail(2));
/*
array(2) {
[0] =>
string(3) "def"
[1] =>
string(3) "ghi"
}
*/
Unit Tests
phpunit
Thanks
Files structure inspired by Geocoder from William Durand
All versions of tac with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.3.0
The package ptachoire/tac contains the following files
Loading the files please wait ....