Download the PHP package adcbguo/think_rabbit_mq without Composer

On this page you can find all versions of the php package adcbguo/think_rabbit_mq. 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 think_rabbit_mq

基于RabbitMQ ThinkPHP 的队列封装

安装使用

配置文件

发布消息队列

$job 是任务名

执行队列消耗类fire,写类名即可 app\log\jobs\ErrorLogJobs

如果一个任务类里有多个小任务的话,需要用@+方法名 app\log\jobs\OrderLogJobs@update

$data 传递参数

是你要传到任务里的参数,必须是数组数据

在消耗类里使用 $this->data 获取

$attempts 执行次数

从第几次开始执行

$mq 虚拟机和队列

发布到那个虚拟机和队列

需要有对应的虚拟机和队列去消耗

监听任务并执行

exchange RabbitMQ的虚拟机

queue RabbitMQ的队列

memory 单个进程使用的最大内存,超出内存会从新启动一个进程

tries 单个消息执行最大次数

可配合supervisor使用,保证进程常驻


All versions of think_rabbit_mq with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2.0
topthink/framework Version 6.0.0
php-amqplib/php-amqplib Version ^2.9
ext-json 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 adcbguo/think_rabbit_mq contains the following files

Loading the files please wait ....