laravel-notification-channels/twitter
Send Twitter notifications from Laravel using this notification channel. Integrate tweets and direct messages into Laravel’s notification system via the Twitter API, with a simple channel driver for queued or on-demand notifications.
Notifiable / notification-channel abstraction, so you can prototype social delivery alongside email, SMS, and Slack without touching your domain code.abraham/twitter 7.0 and pushes consumers to that SDK's 9.x line. Treat the package's major version as coupled to an underlying SDK major — "which package version do we pin?" is now a real roadmap question whenever the X API client changes.Adopt when:
abraham/twitter constraint: use the 8.3.x line if you are on the newer SDK (9.x), or stay on the 9.0 package line only if you are deliberately holding abraham/twitter 7.0. Do not assume a single "latest" works for an existing app — verify the pair.Look elsewhere when:
To executives: This is a low-cost, low-risk experiment to extend our existing notification infrastructure to X/Twitter. The package is MIT-licensed with no vendor lock-in and reuses the notification layer we already run, so engineering effort is minimal. The real investment is X API access, which is now a paid product — so we should frame this as a reach experiment with a small monthly API budget, measured against engagement, not as a critical-path feature. Recommendation: pilot on one brand account, define a kill criterion (e.g., engagement per dollar below email/Slack benchmarks), and revisit in a quarter.
To engineering: Drop-in Laravel notification channel — implement toTwitter() on a notification, add the channel to via(), done. It keeps OAuth and API concerns out of your domain code and composes with existing channels. Caveats to plan for: single-maintainer dependency (pin the version, isolate behind our own notification classes so we can swap or fork), X API tier and rate-limit constraints, and write-only scope. Do not route anything user-critical through it.
Version note from the latest release (v8.3.0): this release drops support for abraham/twitter 7.0; consumers needing that SDK must stay on the 9.0 package line. Practical implications: (1) resolve the package version against our existing abraham/twitter constraint before upgrading, and if nothing else pins us to 7.0, plan the move to the 9.x SDK plus the 8.3.x line as a single combined change; (2) run the notification test suite against a sandbox X account after the bump, since auth-client majors are where subtle request-shape changes surface; (3) this reinforces wrapping the channel in our own notification classes so an SDK-major migration is a contained change rather than a codebase-wide one. No API-surface or feature change for our integration — it is a compatibility and dependency-hygiene release.
How can I help you explore Laravel packages today?