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

Pubnub Laravel Package

laravel-notification-channels/pubnub

Send Laravel notifications through PubNub realtime messaging. This channel publishes notification payloads to PubNub channels so subscribed clients receive instant updates over WebSockets, with support for per-notifier channel names and publish options.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Real-time in-app notification delivery: If the product already uses PubNub for chat, presence, or live updates, this package lets Laravel's notification system fan out messages (order status, alerts, mentions, badges) over the same PubNub streams — avoiding a second real-time delivery pipeline.
  • Feature scoping: Adding a pubnub channel to a notification's via() array is a low-effort experiment. Good for validating "do users want real-time in-app alerts?" before investing in a bespoke push service.
  • Build vs. buy: The "buy" is free (MIT) but thin — it's essentially a small adapter around the PubNub PHP SDK. The real decision is which realtime vendor to commit to; this package is a downstream consequence, not an input.
  • Architecture direction: Keeps notification logic inside Laravel's channel-agnostic abstraction rather than scattering raw PubNub publish() calls through controllers and jobs. Useful if multi-channel delivery (mail + database + push + realtime) is on the roadmap.
  • Use cases: multi-device fan-out, presence-aware alerts, live dashboards, in-app notification centers, chat and comment activity feeds.
  • Roadmap signal: Not a strategic dependency. At best, a convenience layer for teams already standardized on PubNub.

When to Consider This Package

Consider it when:

  • PubNub is already in production and justified on its own merits — you just need a small bridge into Laravel notifications.
  • The use case is simple: publish a JSON payload to a channel name, with no delivery receipts or per-user auth requirements.
  • You are willing to fork and vendor it. With 10 stars, 0 dependents, and a last release of 2019-10-05, treat it as a reference implementation you own, not a dependency you inherit.
  • You have capacity for a short compatibility spike against your current Laravel and PHP versions before committing.

Look elsewhere when:

  • You are still evaluating PubNub as a vendor. A 10-star package should never tip that decision — evaluate the PubNub SDK and service directly.
  • You need queuing, retries, delivery confirmation, token refresh, or PubNub Access Manager authorization. This package does not provide them; you would build that layer yourself regardless.
  • Laravel/PHP version compatibility is uncertain. A 2019 release targets much older stacks; verify before planning around it.
  • Security posture matters. Channel authorization and scoped tokens are real concerns for realtime messaging, and a thin unmaintained adapter almost certainly leaves that to you.
  • You are on Pusher, Ably, Firebase, or Laravel Reverb — use the native broadcast channel and skip PubNub's thin Laravel ecosystem entirely.

How to Pitch It (Stakeholders)

Executives: This is a free, MIT-licensed adapter that lets our Laravel backend push real-time notifications into PubNub — the realtime infrastructure we already pay for. It would let us ship in-app alerts without standing up a separate push pipeline. It is not a strategic investment: 10 GitHub stars, zero known dependents, and no release since October 2019. Recommendation: treat it as a reference implementation we fork and own — the whole thing is small enough to read in an afternoon — rather than a dependency we rely on. The decision we actually need is whether PubNub is our realtime vendor. If yes, fund a short spike to validate the adapter against our stack. If no, skip it and use Laravel's built-in broadcast channel.

Engineering: The package adds a pubnub channel to Laravel's notification system, so a notification's via() can include PubNub and delivery goes out through the PubNub PHP SDK. Surface area is tiny. Known risks: unmaintained since 2019, no queue/retry/auth handling, and likely gaps against current Laravel and PHP versions. Plan: fork it, pin it, add tests, and own the Access Manager token handling ourselves. Do not add it to composer.json as an unpinned upstream dependency.

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.
mehedimi/laravel-amp-mail
happones/laravel-vue-i18n-generator
jwerd/inertia-table
siberfx/flysystem-wasabi
hollyit/token-replace
ippanelcom/laravel-sdk
adachsoft/changelog-linter
adachsoft/collection
payerurl/telegrambot-crypto-payment-instant-payout
dskripchenko/laravel-hybrid-search
riorizkyrainey/lara-ced
mehedimi/static-vel
zharp/zharp
nonsapiens/bigquery-model-sync
lgu-bayambang-ict-office/lgu-laravel-development-standards
andydefer/laravel-support
se7enxweb/flysystem
lampwick/laravel
jeslage/statamic-emojis
micahdshackelford/rmap-laravel