Weave Code
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

Onesignal Bundle Laravel Package

birkof/onesignal-bundle

Symfony bundle integrating the norkunas/onesignal-php-api library. Configure your OneSignal application/user keys and use the onesignal.api service from the container to manage notifications and other OneSignal API resources.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Push Notifications as a Core Feature: Justifies integrating OneSignal directly into the product stack (e.g., for user engagement, marketing campaigns, or real-time alerts) without relying on third-party services like Firebase or Twilio. Reduces vendor lock-in and operational overhead.
  • Symfony/Laravel Ecosystem Alignment: Supports a unified backend stack by leveraging Symfony bundles (via Laravel’s Symfony integration) for consistency in tooling, security patches, and developer experience.
  • Build vs. Buy: Avoids reinventing push notification logic (e.g., API wrappers, rate limiting, payload validation) while maintaining control over customization (e.g., event triggers, segmentation logic).
  • Use Cases:
    • User Onboarding: Send targeted notifications to new users (e.g., "Complete your profile").
    • Transactional Alerts: Deliver time-sensitive updates (e.g., "Your order is shipped").
    • Marketing Campaigns: A/B test notification content or timing via OneSignal’s dashboard.
    • Legacy System Migration: Replace ad-hoc email/SMS alerts with a scalable, analytics-rich push channel.
  • Data-Driven Decisions: Enables integration with OneSignal’s analytics to measure engagement metrics (e.g., open rates, conversions) and iterate on product features.

When to Consider This Package

Adopt if:

  • Your Laravel/Symfony app requires push notifications and you prioritize developer velocity over custom solutions.
  • You’re using OneSignal’s API (or plan to) and want to avoid manual API calls (e.g., handling auth, retries, payloads).
  • Your team lacks bandwidth to maintain a custom push notification service (e.g., rate limiting, device registration).
  • You need quick integration with OneSignal’s features (e.g., segmentation, scheduling) without deep API expertise.
  • Your stack includes Symfony 5.4+ or Laravel 8+ (for Symfony compatibility) and you’re open to PHP 7.4+ (last release was 2022).

Look elsewhere if:

  • You’re locked into Firebase Cloud Messaging (FCM) or another provider with existing infrastructure.
  • Your notifications are low-volume (e.g., <100/month) and a simple HTTP client suffices.
  • You need advanced customization (e.g., proxying notifications through your own servers) that this bundle doesn’t support.
  • Your team prefers event-driven architectures (e.g., Kafka, RabbitMQ) over direct API calls—consider a message queue + custom worker.
  • You require PHP 8.x (this package’s last release was in 2022; no PHP 8 support confirmed).

How to Pitch It (Stakeholders)

For Executives: *"This bundle lets us deliver push notifications at scale without building or maintaining a custom service. OneSignal handles the heavy lifting—device management, analytics, and global reach—while we focus on product features. For example, we can:

  • Boost engagement by sending targeted alerts (e.g., ‘Your cart has items!’) with 30%+ higher open rates than emails.
  • Reduce churn with automated win-back campaigns for inactive users.
  • Cut costs by avoiding per-message fees (OneSignal’s free tier covers most use cases). Integration is minimal: a few config lines and API calls. ROI comes from time saved and data-driven optimizations."

For Engineering: *"This bundle wraps OneSignal’s PHP API in a Symfony-compatible package, so we get:

  • Boilerplate-free setup: No need to manually handle auth, retries, or payload validation.
  • Laravel-friendly: Works with Symfony’s HTTP client (replaces Guzzle in v2.0+), so it plays nice with Laravel’s ecosystem.
  • Extensibility: Hook into OneSignal’s events (e.g., notification_sent) via Laravel’s service container. Action items:
  1. Add birkof/onesignal-bundle to composer.json and configure config/packages/adelplace_one_signal.yaml.
  2. Test the onesignal.api service in a staging environment (e.g., send a test notification to your device).
  3. Audit existing notification logic for conflicts (e.g., custom payload formats). Risk: The package is unmaintained (last release 2022), but the underlying norkunas/onesignal-php-api is active. We can fork it if needed."*

For Design/Product: *"This unlocks push notifications as a first-class feature without engineering overhead. Key benefits:

  • A/B Testing: Use OneSignal’s dashboard to test notification timing/content (e.g., ‘9 AM vs. 3 PM sends’).
  • Segmentation: Target users by behavior (e.g., ‘users who abandoned carts in the last 7 days’).
  • Analytics: Track which notifications drive conversions (e.g., ‘Promo alerts → 12% higher sign-ups’). Example workflow:
  1. Product defines a notification (e.g., ‘New feature available’).
  2. Engineering configures the payload via the bundle.
  3. OneSignal handles delivery and reports metrics back to our dashboard. No need to build a custom UI for this—OneSignal’s web app covers 90% of use cases."
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.
emuniq/filament-browser-notifications
syriable/filament-translator
hungnm28/livewire-form
wenprise/eloquent
crudly/encrypted
fadion/bouncy
cuci/prototurk-sdk
gos/pubsub-router-bundle
cuci/prototurk-sdk-symfony
clementtalleu/easyadmin-markdown-bundle
codeflextech/permission-manager
karnoweb/livewire-datepicker
sayedenam/sayed-dashboard
milito/query-filter
apiboxsym/user-bundle
apiboxsym/health-check-bundle
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui