jamm/tasks 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

jamm/tasks

Composer 安装命令:

composer require jamm/tasks

包简介

Simple way to manage delayed execution in PHP scripts

README 文档

README

#Tasks Simple way to manage delayed execution in PHP scripts
Build Status

##Where can it be used It can be used to execute delayed tasks - tasks, which takes long time to execute and result of their execution isn't necessary to generate output of requested script.
For example, it can be sending mail, or long database queries, or checking some info (IP whois data), delayed collaborating with remote API.

##How to use Tasks it's a base to build your task-handlers.
Task-handlers it's classes, which will store tasks (when called from script) and execute restored tasks (when called from cron-script).
See example of task-handler in MailDelayed.php

To execute tasks, \Tasks\Executor should be called, it's usual work for cron - see tasks_cron.php for example.

##Examples ###How to create Task-class See MailDelayed.php

###How to use Task-class

$taskStorage = new MemStorage(new \Jamm\Memory\RedisObject('tasks'));

$mailer = new MailDelayed($taskStorage);
$mailer->Send('to@example.com', 'Re: Hello', 'Hi, To!', 3);

##Requirements ###PHP version: 5.3+

###To store tasks in memory: Any object, implements Jamm\Memory\IMemoryStorage. For example, Jamm\Memory\RedisObject

###Files storage No any external classes are required

TODO:

  • Track results of tasks execution
  • Auto-repeated tasks

统计信息

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

GitHub 信息

  • Stars: 28
  • Watchers: 4
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2012-12-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固