Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Ably Php Laravel

Ably Php Laravel Laravel Package

ably/ably-php-laravel

Official Ably integration for Laravel. Adds an Ably broadcasting driver plus helpers for realtime pub/sub, presence, and token authentication, letting Laravel apps push live events to web and mobile clients over Ably’s globally distributed network.

View on GitHub
Deep Wiki
Context7

PHP Laravel framework client library SDK for Ably realtime messaging service

Frequently asked questions about Ably Php Laravel
How do I install ably/ably-php-laravel in a Laravel application?
Install the package with Composer using composer require ably/ably-php-laravel. Then publish any provided configuration and add your Ably credentials to the Laravel environment. Because it is a Laravel service provider package, registration and configuration follow normal Laravel package conventions.
Which Laravel and PHP versions does this Ably package support?
The package is built for Laravel applications and depends on the Ably PHP SDK. Exact Laravel and PHP version constraints are defined in the package composer.json, so check those against your locked dependency set before upgrading. Version 1.0.8 bumps ably-php to 1.1.9, so confirm that SDK version is compatible with your PHP runtime.
How do I configure Ably credentials for a Laravel app using this package?
Store your Ably API key or credentials in Laravel environment variables and reference them from the package configuration. Keep credentials out of source control and use separate Ably apps or keys per environment. After configuration, clear Laravel's config cache so the new values are loaded.
Can I use ably/ably-php-laravel as a Laravel broadcasting driver?
Yes. The package adds an Ably broadcasting driver so Laravel events can be pushed to Ably channels. You configure it through Laravel's broadcasting settings and then broadcast events as usual. This is useful when you want managed realtime delivery without operating your own WebSocket servers.
Does this package handle Ably token authentication for web and mobile clients?
The package provides helpers for Ably token authentication, which is the recommended way to authorize clients without exposing your full API key. You typically expose a Laravel endpoint that issues tokens or token requests to trusted users. Review your authorization strategy carefully because token issuance volume and expiry handling affect production behavior.
Can I use this Ably Laravel package for presence and direct pub/sub, not just broadcasting?
Yes. The integration exposes Ably helpers for realtime publish and subscribe workflows, channel management, and presence in addition to the Laravel broadcasting driver. That means you can use it from Laravel services, jobs, or controllers for server-side Ably operations. For client-side presence and subscriptions, pair it with an Ably client SDK and a proper token auth endpoint.
What changed in ably/ably-php-laravel 1.0.8 and is it a breaking change?
Version 1.0.8 is described as a maintenance release that updates the underlying ably-php dependency to 1.1.9. No application-facing API changes, deprecations, or breaking changes are called out. Treat it as a patch-level update, but still run your test suite and validate Ably flows in staging.
How should I test Ably realtime features in a Laravel app before production?
Update in a branch, run your unit and integration tests, and then exercise token auth, channel publish, subscribe, and presence paths in a staging environment. Use test Ably credentials and separate channels so staging traffic does not interfere with production. Confirm Laravel broadcasting configuration and queue behavior if events are broadcast asynchronously.
What are common production failure modes with this Ably Laravel integration?
Typical issues include invalid or expired Ably credentials, token authentication failures, network or Ably API outages, rate limiting, and misconfigured channel names. Dependency drift between Laravel, PHP, this package, and ably-php can also cause problems. Monitor failed publishes, token issuance errors, and connection issues, and keep credential rotation procedures clear.
Is ably/ably-php-laravel a good alternative to running my own WebSocket server or using Pusher?
It is a good fit when Ably is your chosen realtime provider and you want official Laravel integration without operating WebSocket infrastructure yourself. It competes with options such as Pusher or self-hosted socket servers, so compare pricing, global delivery, presence support, and token auth requirements. The package is maintained as part of Ably's official SDK family, which reduces integration risk compared with unofficial wrappers.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console