承接 dexamped/kohana-resque 相关项目开发

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

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

dexamped/kohana-resque

最新稳定版本:1.0

Composer 安装命令:

composer require dexamped/kohana-resque

包简介

Kohana wrapper for php-resque with minion support.

README 文档

README

A Kohana module for queuing asynchronous tasks though php-resque.

  1. Installation
  2. Writing Tasks
  3. Use with minion

Installation

Install the module

git submodule add git@github.com:dexamped/kohana-resque.git modules/kohana-resque
git submodule update --init --recursive

Load dependencies

We have to load vendor's dependencies by running composer install

composer install --working-dir=modules/kohana-resque/vendor/php-resque

Configuration

Edit application/bootstrap.php and add the module:

Kohana::modules(array(
    ...
    'resque' => 'modules/kohana-resque',
    ...
));

Copy the modules/kohana-resque/config/resque.php to APPPATH/config/resque.php and setup your config.

Running workers

From the shell: ./modules/kohana-resque/resque

Writing Tasks

Create a new Task: application/classes/Task/Mytask.php

class Task_Test extends Task_Resque {

	protected $_queue = 'myqueuename';

	public function perform()
	{
		echo "Executing a task!\n";
	}

} // End Task_Test

Use with Minion

Documentation coming

统计信息

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

GitHub 信息

  • Stars: 6
  • Watchers: 2
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2015-05-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固