PHP code example of dmpty / scheduling

1. Go to this page and download the library: Download dmpty/scheduling 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/ */

    

dmpty / scheduling example snippets


class YourClassName extends Scheduling
{

    public function schedule()
    {
        $this->schedule->call(function () {
            // Job
        })->daily();
    }

}

public function register()
{
    $this->app->make('dmpty\ScheduleList')->add(YourClassName::class);
}