The bundle can be installed using the package
In addition to this package, you must install the required dependencies that are namely:
In the following example, we will install
composer require nyholm/psr7 symfony/http-client spomky-labs/web-push-bundle
If you use Symfony Flex, the bundle is ready to be used. Otherwise, you must enable it. The bundle class is
When done, the bundle is ready and can send the notifications. However, there are extra packages we highly recommend to install and set up.
The library provides bridges for the following libraries
lcobucci/jwtdepending on the library you want to use.