ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
[TOC] > [github.com/jobbyphp/jobby](https://github.com/jobbyphp/jobby) ## 概述 ## 安装 ``` composer require hellogerard/jobby ``` ## 使用 ``` * * * * * cd /path/to/project && php jobby.php 1>> /dev/null 2>&1 ``` ``` <?php // Ensure you have included composer's autoloader require_once __DIR__ . '/vendor/autoload.php'; // Create a new instance of Jobby $jobby = new Jobby\Jobby(); // Every job has a name $jobby->add('CommandExample', [ // Run a shell command 'command' => 'ls', // Ordinary crontab schedule format is supported. // This schedule runs every hour. 'schedule' => '0 * * * *', 'output' => 'logs/command.log', ]); $jobby->run(); ```