PHPackages                             nicodemuz/php-tail-f - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. nicodemuz/php-tail-f

ActiveLibrary[File &amp; Storage](/categories/file-storage)

nicodemuz/php-tail-f
====================

A simple implementation to provide tail -f functionality in PHP code. Allows you to monitor newly added lines to a given file.

v1.0.0(2y ago)12.6k↓34.6%MITPHP

Since Feb 9Pushed 2y ago1 watchersCompare

[ Source](https://github.com/nicodemuz/php-tail-f)[ Packagist](https://packagist.org/packages/nicodemuz/php-tail-f)[ RSS](/packages/nicodemuz-php-tail-f/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

tail -f for PHP
===============

[](#tail--f-for-php)

A simple implementation to provide "tail -f" functionality in PHP code. Allows you to monitor newly added lines to a given file.

Works cross-platform on both unix and Windows.

This class is designed for implementation within a PHP daemon, specifically excluding its suitability for PHP scripts that generate output for web browsers.

This is a lightweight class that minimally consumes RAM, CPU, or disk I/O resources. There are no dependencies to other libraries.

Sample usage
------------

[](#sample-usage)

```
