PHP code example of tinyu0 / laravels-file-monitor

1. Go to this page and download the library: Download tinyu0/laravels-file-monitor 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/ */

    

tinyu0 / laravels-file-monitor example snippets


    'event_handlers'           => [
        'WorkerStart' => \Tinyu0\Laravels\Monitor\Monitor::class
    ],

php artisan laravels publish
# Configuration: config/laravels.php
# Binary: bin/laravels bin/fswatch
bash
php bin/laravels {start|stop|restart|reload|info|help}