ably/ably-php
Ably Pub/Sub PHP SDK for building realtime messaging apps in PHP. Publish/subscribe, message history, presence, and push via Ably’s scalable platform. Install with Composer and use REST APIs to connect, manage channels, and publish messages.
The ably-php package enables real-time messaging via Ably’s platform. To get started, require the package via Composer (composer require ably/ably-php), then initialize the client with your Ably API key. A basic use case involves subscribing to channels and publishing messages. This release (1.1.11) is particularly important for projects targeting PHP 8.4+.
CipherParams usage to explicitly declare parameters as ?CipherParams.channel->publishBatch(), verify that messages are sent as MsgPack (the preferred binary format) rather than JSON. This release fixes a bug where batched payloads were incorrectly serialized as JSON—ensure your consumer services expect the correct format.config/services.php). Wrap the Ably client in a service provider or facade for DI, and consider using queue workers with real-time callbacks.CipherParams, explicitly type parameters as nullable (e.g., ?array $cipherParams = null) to resolve the deprecation.Ably::options(['subProtocol' => 'msgpack']) is set and test publishBatch() behavior locally.Ably\Models\Presence and channel mock objects for unit tests—this release’s fixes make batch publishing more reliable, so regression tests for payload format should pass cleanly.How can I help you explore Laravel packages today?