承接 calcinai/php-amqplib-bridge 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

calcinai/php-amqplib-bridge

最新稳定版本:v0.1.4

Composer 安装命令:

composer require calcinai/php-amqplib-bridge

包简介

Bridge for videlalvaro/php-amqplib to expose classes compatible with PECL::AMQP

README 文档

README

Bridge for videlalvaro/php-amqplib to expose classes compatible with PECL::AMQP

This library is a polyfill for the PECL::AMQP Extension, using php-amqplib. The PECL extension is much faster than the php implemention, from what I understand, this is due to PHP's stream_socket_client(). This library enables you to develop/deploy on systems regardless of whether the extension is available. If the native extension is available, it will transparently be used instead of this bridge.

As a bonus, this library will provide type hints/code completion to your IDE (for the PECL extension) if it supports it.

Setup with Composer

{
  "require": {
      "calcinai/php-amqplib-bridge": "0.1.*"
  }
}

Usage

All classes, functions and exceptions should be equivelent to the native ones. Patches are welcome for any inconsistencies.

Examples

Unfortunately the documentation for the PECL extension is quite poor, but with a reasonable understanding of AMQP, you should be able to feel your way around. There are some usage examples on the (Polish?) man pages.

Thanks to @pdezwart for the method stubs, and the contributors to php-amqplib, which is largely what this library is based on.

统计信息

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

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-05-07