PHP code example of yiivgeny / yii-phpdoc-crontab

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

    

yiivgeny / yii-phpdoc-crontab example snippets


class TestCommand extends CConsoleCommand{
    /**
     * @cron 10 * * * *
     */
    public function actionExample1(){}
}

'commandMap' => array(
    'cron' => 'ext.PHPDocCrontab.PHPDocCrontab'
)