PHP code example of enterdev / metodo

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

    

enterdev / metodo example snippets


    'modules' => [
        'metodo' => [
            'class' => 'enterdev\\metodo\\Module'
        ],
    ]

yii metodo/scheduler/daemon

$dailyJob1      = new MetodoCron();
$dailyJob1->tag = 'System';

$dailyJob1->hour   = '0';
$dailyJob1->minute = '0';
$dailyJob1->second = '0';

$dailyJob1->exec_class = 'MockJob';
$dailyJob1->method     = 'job1';
$dailyJob1->save();