PHP code example of deluxcms / crontab

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

    

deluxcms / crontab example snippets


php /path/yii migrate --migrationPath=@vendor/deluxcms/crontab/migrations


namespace console\controllers;

use yii\console\Controller;

class PhpdeamonController extends Controller
{
    public function actions()
    {
        return [
            'index' => [
                'class' => 'deluxcms\crontab\actions\PhpDeamonAction'
            ]
        ];
    }
}