承接 fobilow/queuezilla 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

fobilow/queuezilla

最新稳定版本:1.0.0

Composer 安装命令:

composer require fobilow/queuezilla

包简介

Framework for consuming MYSQL Queues

README 文档

README

QueueZilla is a simple framework that enables you to write MySQL queue consumers quickly and neatly. It enforces key methods via an interface so you can write clean code

Installation

Run composer require fobilow/queuezilla 1.* or add "fobilow/queuezilla" :"1.*" to your composer.json.

Usage

You will need to create a consumer class that extends the MySQLQueueConsumer e.g MyConsumer and implement the following methods

  • getLockedJob();
  • getNewJob();
  • doJob();
  • completeJob();
  • takeABreak()

Then in your CLI script or calling script you call it like this

use QueueZilla\Framework\Queue\MySQLQueueConsumer;

$queueConsumer = new MyConsumer();
$queueConsumer->setProcessId('someId'); //maybe a combination of hostname
$queueConsumer->consume();

Contributing

If you find a bug or want to improve the code in any way, please submit a pull request

Failing that, just create an issue with the bug you have found, and I'll take it from there :)

统计信息

  • 总下载量: 33
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2015-05-01

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固