kozo / quartz
Installs: 330
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/kozo/quartz
Requires
- kozo/watchmaker: 0.1.0
- laravel/framework: ^6.20.14|^7.0|^8.0
This package is auto-updated.
Last update: 2025-09-19 19:23:27 UTC
README
composer require kozo/quartz
create quartz file.
php artisan quartz:create
edit quartz file.
app/Quartz/QuartzCron.php
// sample
<?php
namespace App\Quartz;
use Watchmaker\Watchmaker;
class QuartzCron {
public function handle(Watchmaker $watchmaker): Watchmaker
{
$task1 = $watchmaker->task('php hoge/fuga.php');
$task1 = $task1
->month(1)
->day(5);
$watchmaker->add($task1);
$task2 = $watchmaker->task('php hoge/hoge.php');
$task2 = $task2
->month(2)
->day(6);
$watchmaker->add($task2);
return $watchmaker;
}
}
run command
show
show the difference between "crontab" and "Quartz".
php artisan quartz:show
install
Install the difference between "crontab" and "Quartz".
php artisan quartz:install