Download the PHP package losingbattle/rocketmq-http without Composer

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

ROCKETMQ-HTTP 组件

安装

默认配置

配置 类型 默认值 备注
host string Host
access_key_id string
access_key_secret string
instance_id string 实例id
concurrent.limit int 0 同时消费的数量

hyperf中使用一下命令初始化即可

投递消息

在 DemoProducer 文件中,我们可以修改 @Producer 注解对应的字段来替换对应的 topictag。 其中 MessageBody 就是最终投递到消息队列中的数据。 示例如下。

使用 @Producer 注解时需 use Losingbattle\RocketMqHttp\Annotation\Producer; 命名空间;

消费消息

日志

dependencies.php中添加(建议只在本地调试时使用,本质上是不停的http轮询,影响日志查看)

listener.php 中添加消费listener

demo

普通消息生产

普通消息消费

顺序消息生产

顺序消息消费

延时消息生产

延时消息生产与普通消息相比只是在注解上多个一个delayTtl(秒)的属性

延迟消息消费

延时消息与普通基本在消费形式上没有太大区别,只有在阿里云控制台有区分

事务消息

普通消息生产


All versions of rocketmq-http with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
hyperf/di Version ~3.1.0
hyperf/codec Version ~3.1.0
hyperf/contract Version ~3.1.0
hyperf/support Version ~3.1.0
hyperf/coroutine Version ~3.1.0
hyperf/collection Version ~3.1.0
hyperf/guzzle Version ~3.1.0
hyperf/process Version ~3.1.0
psr/container Version ^1.0|^2.0
psr/event-dispatcher Version ^1.0
psr/log Version ^1.0|^2.0|^3.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 losingbattle/rocketmq-http contains the following files

Loading the files please wait ....