davibennun/laravel-push-notification
Laravel package for sending push notifications to iOS and Android devices via APNs and GCM/FCM. Integrates with Laravel's queue, config, and service container, letting you dispatch notifications to one or many devices through a simple, unified API.
Architecture fit: The package is a thin Laravel service-provider/facade wrapper around device push delivery, historically APNs for iOS and GCM for Android. It fits a legacy Laravel 4/5 monolith that needs simple, fire-and-forget device notifications. It does not fit a modern Laravel/PHP 8+ architecture, queued multi-tenant notification pipeline, or event-driven service without significant isolation and adaptation.
Integration feasibility: Feasible only in a legacy stack with compatible PHP/Laravel constraints. Installation depends on old Illuminate versions and provider credentials such as APNs certificates and a GCM API key. The Android path is effectively non-viable because GCM was shut down and replaced by FCM. The iOS path likely relies on older certificate-based APNs flows that require careful lifecycle management. Treat this as a short-term bridge or reference implementation, not a strategic dependency.
Technical risk: High. The repository is archived, so there are no upstream security patches, framework compatibility updates, or provider modernization. GCM deprecation alone breaks the Android delivery path. APNs certificate rotation, token-based auth migration, retry semantics, observability, and dead-token handling are not adequately addressed for current production expectations. The 1,225 stars indicate historical adoption, not current maintainability.
Key questions:
Stack fit: Use only as an isolated adapter inside a legacy Laravel application. For modern stacks, prefer maintained Laravel notification channels or direct FCM HTTP v1 and APNs HTTP/2 token-based integrations. The package should not leak its facade or models into domain code.
Migration path: Introduce an internal PushGateway interface and wrap the package behind an adapter. Keep all legacy package calls in one module. Replace Android/GCM with FCM first, then migrate iOS to token-based APNs. Once both transports are behind the interface, swap the adapter to a maintained library or direct provider SDK and remove the package.
Compatibility: Validate Composer constraints against the actual PHP/Laravel version, OpenSSL behavior, and provider credential formats. Expect conflicts with modern Illuminate packages. Pin the package version exactly and avoid upgrading Laravel until the adapter is removed or forked.
Sequencing:
Maintenance: Archived status means no upstream fixes. The team must own dependency security, compatibility patches, certificate rotation, and provider API changes. Budget for a fork or, more likely, replacement. Static analysis and dependency scanners will continue to flag the package.
Support: Community support is stale and there is no vendor SLA. Incident response depends on internal knowledge of legacy APNs/GCM behavior. Teams should document provider consoles, credential owners, and escalation paths before relying on it.
Scaling: The package is likely synchronous per-device send with limited batching, retry, backoff, and rate-limit handling. High-volume use requires queue workers, batching, provider rate-limit controls, and dead-token cleanup. Without those, delivery latency and provider throttling will become operational issues.
Failure modes: Common failures include expired APNs certificates, invalid or stale device tokens, GCM 404/410 responses, silent delivery failures, missing delivery receipts, credential leakage, PHP/framework incompatibility, and abrupt provider deprecation. Instrument logging, metrics, alerting, and a dead-letter queue around every send path.
Ramp-up: Initial ramp-up is low for developers familiar with legacy Laravel facades, but the hidden cost is high: the team must still learn modern FCM HTTP v1 and APNs token-based authentication to replace it. A TPM should fund a short spike, assign clear ownership, and set a hard removal date rather than allowing the package to persist indefinitely.
How can I help you explore Laravel packages today?