Download the PHP package xskit/laravel-rabbitmq without Composer

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

安装

使用方法

Laravel

安装后使用 Laravel 自动发现,包将自动注册自己。

Lumen

对于Lumen的使用,服务提供者应该手动注册,bootstrap/app.php 如下面所示:

配置

修改配置可以根据 config/queue.php 配置到 .env文件中,或者添加配置到 config/queue.php 进行配置修改

队列监听,开始消费消息

选项
--queue[=QUEUE] 工作队列名
--routing[=ROUTING] 消息路由
--no-ack 关闭消息确认
--daemon 以守护进程模式运行工作程序 (弃用)
--once 只处理队列上的下一个作业
--delay[=DELAY] 延迟失败作业的秒数 [default: "0"]
--force 强制在维护模式下运行
--memory[=MEMORY] 内存限制,以 M 为单位( [default: "128"]
--sleep[=SLEEP] 没有工作时睡觉的秒数 [default: "3"]
--timeout[=TIMEOUT] 子进程可以运行的秒数 [default: "60"]
--tries[=TRIES] 在记录作业失败之前尝试该作业的次数 [default: "0"]

消息处理的方式

Laravel 使用示例


All versions of laravel-rabbitmq with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1.3
ext-json Version *
illuminate/support Version 5.8.*
illuminate/queue Version 5.8.*
illuminate/database Version 5.8.*
enqueue/amqp-lib Version 0.9.*
queue-interop/amqp-interop Version 0.8.*
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 xskit/laravel-rabbitmq contains the following files

Loading the files please wait ....