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

Webpush Bundle Laravel Package

bentools/webpush-bundle

Symfony bundle to send Web Push notifications using the Web Push protocol. Manage user-to-subscription associations (multi-device and shared devices) with your own persistence (Doctrine or custom). Includes VAPID key generation and backend APIs for subscriptions.

View on GitHub
Deep Wiki
Context7

FAQ

Do I need FOSUserBundle?

Nope. We rely on your Symfony\Component\Security\Core\User\UserInterface implementation, which can come from FOSUserBundle or anything else.

What if I have several kind of users in my app?

It's OK. You can subscribe separately your Employees and your Customers, for instance.

Example config:

# app/config/services.yml (SF3)
# config/services.yaml (SF4) 

services:
    App\Services\EmployeeSubscriptionManager:
        class: App\Services\EmployeeSubscriptionManager
        arguments:
            - '[@doctrine](https://github.com/doctrine)'
        tags:
            - { name: bentools_webpush.subscription_manager, user_class: 'App\Entity\Employee' }
            
    App\Services\CustomerSubscriptionManager:
        class: App\Services\CustomerSubscriptionManager
        arguments:
            - '[@doctrine](https://github.com/doctrine)'
        tags:
            - { name: bentools_webpush.subscription_manager, user_class: 'App\Entity\Customer' }

Can a user subscribe with multiple browsers?

Of course. You send a notification to a user, it will be dispatched among the different browsers they subscribed.

You can control subscriptions on the client-side.

How do I manage subscriptions / unsubscriptions from an UI point of view?

For the front-end part of the subscription / unsubscription process, check-out the WebPush Client Javascript Library that has been designed to work with this bundle.

Previous: Usage

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.
terminal42/code-quality-tools
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky