PHPackages                             ably/ably-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. ably/ably-php

ActiveLibrary[API Development](/categories/api)

ably/ably-php
=============

Ably REST client library for PHP.

1.1.11(1y ago)596.9M—1.7%16[21 issues](https://github.com/ably/ably-php/issues)[4 PRs](https://github.com/ably/ably-php/pulls)19Apache-2.0PHPPHP ^7.2 || ^8.0CI failing

Since May 18Pushed 8mo ago24 watchersCompare

[ Source](https://github.com/ably/ably-php)[ Packagist](https://packagist.org/packages/ably/ably-php)[ Docs](https://www.ably.com/)[ RSS](/packages/ably-ably-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (2)Versions (26)Used By (19)

[![Ably Pub/Sub PHP Header](images/php-SDK-github.png)](images/php-SDK-github.png)[![Latest Stable Version](https://camo.githubusercontent.com/ef3edb52f0cf1b5fb04dd956f3eaea9e9fd6e7f69d312b73e2246583d08b5d44/68747470733a2f2f706f7365722e707567782e6f72672f61626c792f61626c792d7068702f762f737461626c65)](https://packagist.org/packages/ably/ably-php)[![License](https://camo.githubusercontent.com/94a678ef5eaf67164271142a19f53335647a2616768b5d5669b85ab7e67a4916/68747470733a2f2f706f7365722e707567782e6f72672f61626c792f61626c792d7068702f6c6963656e7365)](https://github.com/ably/ably-php/blob/main/LICENSE)

---

Ably Pub/Sub PHP SDK
====================

[](#ably-pubsub-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:

- [Ably Pub/Sub docs.](https://ably.com/docs/basics)
- [Ably Pub/Sub examples.](https://ably.com/examples?product=pubsub)

---

Getting started
---------------

[](#getting-started)

Everything you need to get started with Ably:

- [Getting started with Pub/Sub using PHP.](https://ably.com/docs/getting-started/php)
- [SDK Setup for PHP.](https://ably.com/docs/getting-started/setup?lang=php)

---

Supported platforms
-------------------

[](#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](https://ably.com/support).

Important

PHP SDK versions &lt; 1.1.9 will be [deprecated](https://ably.com/docs/platform/deprecate/protocol-v1) from November 1, 2025.

---

Laravel packages
----------------

[](#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](https://github.com/ably/ably-php-laravel)** - Laravel integration package with clean facade and dependency injection interface.
- **[Ably Broadcaster for Laravel](https://github.com/ably/laravel-broadcaster)** - Official Laravel broadcaster for real-time event broadcasting.

---

Installation
------------

[](#installation)

To get started with your project, install the package:

```
composer require ably/ably-php
```

---

Usage
-----

[](#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
--------

[](#releases)

The [CHANGELOG.md](./CHANGELOG.md) contains details of the latest releases for this SDK. You can also view all Ably releases on [changelog.ably.com](https://changelog.ably.com).

---

Contributing
------------

[](#contributing)

Read the [CONTRIBUTING.md](./CONTRIBUTING.md) guidelines to contribute to Ably.

---

Support, feedback, and troubleshooting
--------------------------------------

[](#support-feedback-and-troubleshooting)

For help or technical support, visit the [Ably Support page](https://ably.com/support).

### Ably REST API

[](#ably-rest-api)

This SDK currently supports only the [Ably REST API](https://www.ably.com/docs/rest). For realtime capabilities, you can use the [MQTT adapter](https://www.ably.com/docs/mqtt) alongside [Mosquitto PHP](https://github.com/mgdm/Mosquitto-PHP) to implement Ably's Realtime features.

###  Health Score

58

—

FairBetter than 98% of packages

Maintenance45

Moderate activity, may be stable

Popularity59

Moderate usage in the ecosystem

Community38

Small or concentrated contributor base

Maturity78

Established project with proven stability

 Bus Factor3

3 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~188 days

Recently: every ~255 days

Total

20

Last Release

437d ago

Major Versions

0.9.0 → 1.0.02017-03-07

PHP version history (3 changes)0.8.0PHP &gt;=5.4

1.1.0PHP ^5.6 || ^7.0

1.1.4PHP ^7.2 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/ff0a7b851d173fca84bc50c6ca7d8cfcb353126a00a7cfc5f8ca9832dc3bd3f1?d=identicon)[ably](/maintainers/ably)

---

Top Contributors

[![sacOO7](https://avatars.githubusercontent.com/u/16723785?v=4)](https://github.com/sacOO7 "sacOO7 (140 commits)")[![bladeSk](https://avatars.githubusercontent.com/u/4263742?v=4)](https://github.com/bladeSk "bladeSk (122 commits)")[![caphun](https://avatars.githubusercontent.com/u/44370?v=4)](https://github.com/caphun "caphun (106 commits)")[![jdavid](https://avatars.githubusercontent.com/u/596769?v=4)](https://github.com/jdavid "jdavid (76 commits)")[![owenpearson](https://avatars.githubusercontent.com/u/48608556?v=4)](https://github.com/owenpearson "owenpearson (43 commits)")[![mattheworiordan](https://avatars.githubusercontent.com/u/43789?v=4)](https://github.com/mattheworiordan "mattheworiordan (23 commits)")[![franrob-projects](https://avatars.githubusercontent.com/u/111994975?v=4)](https://github.com/franrob-projects "franrob-projects (18 commits)")[![AndyTWF](https://avatars.githubusercontent.com/u/6977297?v=4)](https://github.com/AndyTWF "AndyTWF (15 commits)")[![QuintinWillison](https://avatars.githubusercontent.com/u/8318344?v=4)](https://github.com/QuintinWillison "QuintinWillison (13 commits)")[![funkyboy](https://avatars.githubusercontent.com/u/348355?v=4)](https://github.com/funkyboy "funkyboy (10 commits)")[![kouno](https://avatars.githubusercontent.com/u/209665?v=4)](https://github.com/kouno "kouno (10 commits)")[![Srushtika](https://avatars.githubusercontent.com/u/5900152?v=4)](https://github.com/Srushtika "Srushtika (7 commits)")[![DamienHarper](https://avatars.githubusercontent.com/u/2448660?v=4)](https://github.com/DamienHarper "DamienHarper (4 commits)")[![driesvints](https://avatars.githubusercontent.com/u/594614?v=4)](https://github.com/driesvints "driesvints (3 commits)")[![niksilver](https://avatars.githubusercontent.com/u/149467?v=4)](https://github.com/niksilver "niksilver (1 commits)")[![lmars](https://avatars.githubusercontent.com/u/488515?v=4)](https://github.com/lmars "lmars (1 commits)")[![Quezler](https://avatars.githubusercontent.com/u/3179271?v=4)](https://github.com/Quezler "Quezler (1 commits)")[![andydunstall](https://avatars.githubusercontent.com/u/29143656?v=4)](https://github.com/andydunstall "andydunstall (1 commits)")

---

Tags

client-libraryphprestsdkmessagingmessagesably

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ably-ably-php/health.svg)

```
[![Health](https://phpackages.com/badges/ably-ably-php/health.svg)](https://phpackages.com/packages/ably-ably-php)
```

###  Alternatives

[prooph/service-bus-symfony-bundle

88392.2k3](/packages/prooph-service-bus-symfony-bundle)[messagemedia/messages-sdk

The MessageMedia Messages API provides a number of endpoints for building powerful two-way messaging applications.

13390.6k](/packages/messagemedia-messages-sdk)[mobizon/mobizon-php

A PHP library for communicating with the Mobizon API. Mobizon is a powerful SMS gateway and online marketing tools.

18115.1k1](/packages/mobizon-mobizon-php)[scriptdevelop/whatsapp-manager

Paquete para manejo de WhatsApp Business API en Laravel

762.6k](/packages/scriptdevelop-whatsapp-manager)[jhowbhz/package-apigratis

Uma forma simples de consumir serviços gratuitos oferecidos pelo site https://apigratis.com.br/

505.2k](/packages/jhowbhz-package-apigratis)[jhowbhz/apigratis-sdk-php

This package is free and can be used for API Brazil website functions

183.6k](/packages/jhowbhz-apigratis-sdk-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
