Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/minishlink/web-push-bundle

Bundle around the WebPush library
https://github.com/minishlink/web-push-bundle

bundle notifications php symfony symfony-bundle web-push

Last synced: 16 days ago
JSON representation

Bundle around the WebPush library

Awesome Lists containing this project

README

        

# MinishlinkWebPushBundle
This bundle provides a simple integration of the [WebPush library](https://github.com/Minishlink/web-push).

[![SensioLabsInsight](https://insight.sensiolabs.com/projects/0c2947f7-f173-4d00-b0bb-da26613d52a2/mini.png)](https://insight.sensiolabs.com/projects/0c2947f7-f173-4d00-b0bb-da26613d52a2)

## Usage
Web Push sends notifications to endpoints which server delivers web push notifications as described in
the [Web Push API specification](http://www.w3.org/TR/push-api/).

```php
container->get('minishlink_web_push');
```

The bundle provides a new `minishlink_web_push` service that returns an instance of `Minishlink\WebPush\WebPush`.

For more info on what you can do with `$webPush`, check [Minishlink/web-push](https://github.com/Minishlink/web-push).

## Installation

1. `composer require minishlink/web-push-bundle`
2. Enable the bundle in your `app/AppKernel.php`.

```php