ably/ably-php
Composer 安装命令:
composer require ably/ably-php
包简介
Ably REST client library for PHP.
关键字:
README 文档
README
Ably Pub/Sub PHP SDK
Build using Ably’s Pub/Sub PHP SDK, supported on all popular platforms and frameworks.
Ably Pub/Sub provides flexible APIs that deliver features such as pub-sub messaging, message history, presence, and push notifications. Utilizing Ably’s realtime messaging platform, applications benefit from its highly performant, reliable, and scalable infrastructure.
Find out more:
Getting started
Everything you need to get started with Ably:
Supported platforms
Ably aims to support a wide range of platforms. If you experience any compatibility issues, open an issue in the repository or contact Ably support.
Important
PHP SDK versions < 1.1.9 will be deprecated from November 1, 2025.
Laravel packages
For Laravel applications, consider these framework-integrated alternatives that provide Laravel integration with automatic configuration and native broadcasting support, eliminating the boilerplate setup required when using the raw PHP SDK directly:
- Ably Pub/Sub PHP Laravel SDK - Laravel integration package with clean facade and dependency injection interface.
- Ably Broadcaster for Laravel - Official Laravel broadcaster for real-time event broadcasting.
Installation
To get started with your project, install the package:
composer require ably/ably-php
Usage
The following code connects to Ably's REST messaging service, gets reference to a channel to receive messages, and publishes a test message to that same channel:
// Initialize Ably REST client $ably = new AblyRest(['key' => 'your-ably-api-key', 'clientId' => 'me']); // Get a reference to the 'test-channel' channel $channel = $ably->channel('test-channel'); // Publish a test message to the channel $channel->publish('test-event', 'hello world');
Releases
The CHANGELOG.md contains details of the latest releases for this SDK. You can also view all Ably releases on changelog.ably.com.
Contributing
Read the CONTRIBUTING.md guidelines to contribute to Ably.
Support, feedback, and troubleshooting
For help or technical support, visit the Ably Support page.
Ably REST API
This SDK currently supports only the Ably REST API. For realtime capabilities, you can use the MQTT adapter alongside Mosquitto PHP to implement Ably's Realtime features.
ably/ably-php 适用场景与选型建议
ably/ably-php 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 7.77M 次下载、GitHub Stars 达 59, 最近一次更新时间为 2015 年 04 月 29 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「messaging」 「messages」 「ably」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 ably/ably-php 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 ably/ably-php 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 ably/ably-php 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
An Ably broadcaster for Laravel
Ably realtime REST PHP library wrapper for Laravel
Real-time events from server to browsers and mobile devices
PHP SDK for Mobile Message SMS API
Azure service bus Transport
Official PHP client for NATS messaging system
统计信息
- 总下载量: 7.77M
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 59
- 点击次数: 26
- 依赖项目数: 20
- 推荐数: 23
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2015-04-29
