Download the PHP package ably/ably-php-laravel without Composer

On this page you can find all versions of the php package ably/ably-php-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package ably-php-laravel

Latest Stable Version License


Ably Pub/Sub PHP Laravel SDK

Build using Ably’s Pub/Sub PHP Laravel SDK, supported on all popular platforms and frameworks.

This Laravel package provides a clean integration with the Ably PHP SDK. It includes a Facade and an injectable AblyService that wrap a singleton Ably instance, with configuration automatically loaded from your environment variables or config files. Additionally, the AblyFactory class lets you create new Ably instances with custom parameters when needed.

This SDK provides REST-only functionality for Laravel. For full-featured Laravel integration including real-time capabilities, Ably recommend using Ably's Laravel Broadcaster.

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.

The PHP client library currently targets the Ably 1.1 client library specification.

[!NOTE] See laravel-broadcaster, if you're using Laravel and want to support Realtime broadcasting and events.

[!IMPORTANT] PHP SDK versions < 1.1.9 will be deprecated from November 1, 2025.


Installation

Install the package using Composer:

Add the service provider in config/app.php to the providers array.

Optionally add a reference to the facade in config/app.php to the aliases array.


Configuration

After registering the service provider, publish the configuration file using Artisan:

Update the created file config/ably.php with your key or other options. You can also set the key using an environment variable named ABLY_KEY.

Usage

The following sections demonstrates two ways to use Ably in Laravel: via a dependency injection.

Facade

Use the Laravel facade to access the Ably client.

Facade usage details. The facade always returns a singleton instance created with options defined in the config file. Any methods available on an AblyRest class are available through the facade. Due to PHP limitations, properties must be accessed as methods, for example `Ably::auth()`):

Dependency injection

Use the dependency injection to access the Ably client.

Dependency injection usage details. You can use `Ably\Laravel\AblyService` instead of the facade, which acts as a 1:1 wrapper for an AblyRest singleton instance created with default options. `Ably\Laravel\AblyFactory` lets you instantiate new AblyRest instances with (optional) custom options.

Releases

The 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. If you need to subscribe to realtime events in PHP, consider using the MQTT adapter to leverage Ably's Realtime features.


All versions of ably-php-laravel with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2 || ^8.0
ably/ably-php Version ~1.1.9
laravel/framework Version >=6.0.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package ably/ably-php-laravel contains the following files

Loading the files please wait ....