PHP Classes

tail: Get the last lines of a file as the tail command

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 68%Total: 1,744 All time: 2,251 This week: 488Up
Version License Categories
tail 1.0GNU Lesser Genera...HTML, XML, Files and Folders, Text pr...
Description 

Author

This class can be used to get the last lines of a file like the Unix tail command.

It can also filter the retrieved lines so only the lines that have a certain keyword or match a given regular expression are returned, like when using the Unix grep command.

It uses pure PHP commands so it can work on non-Unix like systems.

The maximum number of returned lines is configurable. The retrieved lines are returned as a text string. The retuned text may be highlighted or even formatted as an HTML list, or as XML document.

Picture of Bastian Gorke
Name: Bastian Gorke is available for providing paid consulting. Contact Bastian Gorke .
Classes: 3 packages by
Country: Germany Germany
Age: 43
All time rank: 697 in Germany Germany
Week rank: 227 Down10 in Germany Germany Down
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files (3)  
File Role Description
Plain text file class.tail.php Class the class-file
Accessible without login HTML file description.html Doc. documentation, based on example
Plain text file showfile-example.php Example example

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,744
This week:0
All time:2,251
This week:488Up
 User Ratings  
 
 All time
Utility:93%StarStarStarStarStar
Consistency:75%StarStarStarStar
Documentation:68%StarStarStarStar
Examples:68%StarStarStarStar
Tests:-
Videos:-
Overall:68%StarStarStarStar
Rank:420