Download the PHP package kwm/think-amqp without Composer

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

Think AMQP

基于 ThinkPHP 6 的 RabbitMQ 消息队列 AMQP 操作类

安装

该操作类需要依赖 PHP 的 AMQP 扩展,可使用 pcel install amqp 安装

安装完成后,请确认 vendor/services.php 中数组里有添加 think\\amqp\\Service。若没有添加,请手工运行:php think service:discover

入门

配置

将 示例配置文件 复制到项目 config 目录下

生产者

若交换机不存在,默认会创建 fanout 交换机,需要你在管理界面绑定对应的队列,比如将 kwm 交换机和 kwm.queue 队列绑定到一起

消费者

消费者封装

封装特性:

消费者命令行

配置
  1. 配置文件: app/tasks.php,内容请见 这里

  2. 启动消费者:php think consumer kwm

All versions of think-amqp with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1.0
ext-amqp Version >=1.9.0
topthink/framework Version ^6.0.0
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 kwm/think-amqp contains the following files

Loading the files please wait ....