定制 fidum/laravel-schedule-queue-command 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

fidum/laravel-schedule-queue-command

最新稳定版本:2.0.0

Composer 安装命令:

composer require fidum/laravel-schedule-queue-command

包简介

Provides the ability to queue commands from the Laravel scheduler.

README 文档

README

Latest Version on Packagist GitHub Workflow Status (with branch) Twitter Follow

Adds a queueCommand function to the scheduler that executes the equivalent of Artisan::queue(...) on the given schedule. It also provides the ability to optionally customise the queue and connection if needed.

Installation

You can install the package via composer:

composer require fidum/laravel-schedule-queue-command

Usage

In your laravel projects app/Console/Kernel.php:

$schedule->queueCommand(FooCommand::class)->everyMinute();
$schedule->queueCommand(FooCommand::class, ['some-argument' => 'foo']);
$schedule->queueCommand(FooCommand::class, ['some-argument' => 'foo'], 'queue');
$schedule->queueCommand(FooCommand::class, ['some-argument' => 'foo'], 'queue', 'connection');

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 17.52k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 11
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 11
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-07-28