PHP code example of mpusher / cron-admin

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

    

mpusher / cron-admin example snippets


#配置config/plugin/yzh52521/task/app.php

return [
    'enable' => true,
    'task'   => [
        'listen'            => '0.0.0.0:2345',
        'crontab_table'     => 'system_crontab', //任务计划表
        'crontab_table_log' => 'system_crontab_log',//任务计划流水表
        'debug'             => true,
    ],
];
>

#配置config/plugin/mpusher/cron-admin/app.php

return [
    'enable' => true,
    'username' => 'root',   //登陆账号
    'password' => '123456', //登陆密码
];