Download the PHP package jeanile/hyperf-taobao-tmc without Composer

On this page you can find all versions of the php package jeanile/hyperf-taobao-tmc. 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 hyperf-taobao-tmc

概述

淘宝消息服务 TMC 的 PHP 版本,是基于 Hyperf 框架实现。

特性

使用要求

安装

1. Composer安装

2. 发布配置文件

配置参数说明:

配置项 类型 说明 默认值
enable bool 消息回调开关 true
uri string 淘宝 ws 链接 ws://mc.api.taobao.com
app_key string 应用 app_key 30
app_secret string 应用 app_secret 30
group_name string 分组名,目前仅支持默认分组 default
options.reconnect_time int 每隔n秒执行重连检查 15(秒)
options.pull_request_time int 每隔n秒主动请求维持连接 60(秒)
service_name string 店铺唯一标识,可用 app_key 或自定义
handler string 消息处理类

多个店铺配置:

使用

创建一个 handle 类,并实现 MessageHandlerInterface

注意事项

项目部署在多个台服务器(pod)上时会建立多个连接,但消息只会被一台机器消费了,因此如果区分多个环境,如:测试、预发布、生产环境,建议上线后仅生产环境开启(enable 设置 true),其他环境关闭,避免抢占消费消息。

TODO

参考

https://github.com/period331/phptmc/tree/master


All versions of hyperf-taobao-tmc with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
hyperf/logger Version ~2.2.0
hyperf/utils Version ~2.2.0
hyperf/contract Version ~2.2.0
hyperf/event Version ~2.2.0
hyperf/framework Version ~2.2.0
hyperf/websocket-client Version ~2.2.0
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 jeanile/hyperf-taobao-tmc contains the following files

Loading the files please wait ....