Download the PHP package mojiehai/queue_task without Composer

On this page you can find all versions of the php package mojiehai/queue_task. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package queue_task

queue_task

PHP队列任务管理器,支持多种存储方式


业务场景

在实际业务场景中,我们可能需要执行一些耗时操作,例如:发送邮件等。但这样的操作并不适合放在主流程中,则可以使用队列来异步处理任务。


简述

基于php-cli模式多进程的生产者-消费者模式,自定义存储介质,也可用系统内置存储:Redis/Mns/RabbitMq。


依赖

必须


安装

linux:composer require mojiehai/queue_task

windows:composer require mojiehai/queue_task --ignore-platform-reqs (忽略环境检查)(windows不支持多进程)


使用

全局配置

压入任务

  1. 首先定义处理类,例如:TestHandler继承JobHandler,并定义任务test方法
  2. test方法接收两个参数,第一个为Job对象,第二个为自定义参数

  3. 压入

监听任务

  1. 以普通方式启动监听任务(单进程)


  2. 以守护进程方式启动监听任务(多进程)



All versions of queue_task with dependencies

PHP Build Version
Package Version
Requires aliyun/aliyun-mns-php-sdk Version ^1.1
php-amqplib/php-amqplib Version ^2.10
php Version >=7.0
ext-json Version *
ext-redis Version *
ext-pcntl Version *
ext-posix Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package mojiehai/queue_task contains the following files

Loading the files please wait ....