prooph/psb-http-producer 问题修复 & 功能扩展

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

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

prooph/psb-http-producer

最新稳定版本:v1.1.0

Composer 安装命令:

composer require prooph/psb-http-producer

包简介

Http Message Producer for Prooph Service Bus using guzzle

README 文档

README

Build Status Coverage Status Gitter

Use php-http/httplug as message producer for Prooph Service Bus. Works together with all bus types: CommandBus, EventBus and QueryBus.

Important

This library will receive support until December 31, 2019 and will then be deprecated.

For further information see the official announcement here: https://www.sasaprolic.com/2018/08/the-future-of-prooph-components.html

Installation

You can install the producer via composer by adding "prooph/psb-http-producer": "^1.0" as requirement to your composer.json.

Usage

Pass a ready-to-use Http\Client\HttpClient to Prooph\ServiceBus\Message\Http\HttpMessageProducer together with a Prooph\Common\Messaging\MessageConverter.

For async requests use an Http\Client\HttpAsyncClient with \Prooph\ServiceBus\Message\Http\HttpAsyncMessageProducer.

The MessageProducer sends a POST request to an endpoint specified by a psr-7 URI (using psr/http-message) with the json encoded message as body.

An async request means that when the producer is used for querying remote services (QueryBus) the producer does not wait until the promise gets resolved.

For an overview of all ready-to-use http client implementations, check the official documentation of php-http.

Support

Contribute

Please feel free to fork and extend existing or add new features and send a pull request with your changes! To establish a consistent code quality, please provide unit tests for all your changes and may adapt the documentation.

License

Released under the New BSD License.

统计信息

  • 总下载量: 4.12k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 12
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 12
  • Watchers: 4
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2015-11-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固