kl3sk/mqtt-transport-bundle 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

kl3sk/mqtt-transport-bundle

Composer 安装命令:

composer require kl3sk/mqtt-transport-bundle

包简介

Provide a MQTT transport for symfony messenger

README 文档

README

Note: This bundle is a work in progress

This bundle provide a MQTT transport for symfony messenger.

Installation

composer require kl3sk/mqtt-transport-bundle:@dev

Configuration

MESSENGER_MQTT_TRANSPORT_DSN=mqtt://user:password@broker:1883
MQTT_CLIENT_ID=symfonyclient
MQTT_TOPICS='/topic1,/topic2'

Create your Message and Message handler Symfony documentation

services.yaml

services:
    framework:
        messenger:
            # ... your definitions
            transports:
                mqtt:
                    dsn: '%env(MESSENGER_MQTT_TRANSPORT_DSN)%'
                    serializer: Kl3sk\MqttTransportBundle\Serializer\JsonMessageSerializer
            routing:
                # Route your messages to the transports
                'Kl3sk\MqttTransportBundle\Message\ExampleMessage': mqtt

Examples

See in the Mqtt folder

Demo

You can find a demo here

Thanks

Thanks to Namoshek for his client and his help.

统计信息

  • 总下载量: 18
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-04-17