PHP code example of vasadibt / yii2-cron

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

    

vasadibt / yii2-cron example snippets


// Add namespace to console config:
'controllerMap' => [
    'migrate' => [
        'class' => 'yii\console\controllers\MigrateController',
        'migrationPath' => [
            '@vasadibt/cron/migrations',
        ],
    ],
],

'modules' => [
    'cron' => [
        'class' => 'vasadibt\cron\Module',
    ],
],

'modules' => [
    'cron' => [
        'class' => 'vasadibt\cron\Module',
    ],
],

php composer.phar