PHP code example of nicodemuz / php-tail-f

1. Go to this page and download the library: Download nicodemuz/php-tail-f library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

nicodemuz / php-tail-f example snippets




use Nicodemuz\PhpTailF\Monitor;

'/tmp/test.log',
    sleepMicroseconds: 500000,
);

foreach ($monitor->run() as $output) {
    echo $output;
}