2017 © Pedro Peláez
 

symfony-bundle web-push-bundle

Symfony Bundle around the WebPush library

image

minishlink/web-push-bundle

Symfony Bundle around the WebPush library

  • Thursday, May 24, 2018
  • by Minishlink
  • Repository
  • 1 Watchers
  • 14 Stars
  • 30,111 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 12 Versions
  • 18 % Grown

The README.md

MinishlinkWebPushBundle

This bundle provides a simple integration of the WebPush library., (*1)

SensioLabsInsight, (*2)

Usage

Web Push sends notifications to endpoints which server delivers web push notifications as described in the Web Push API specification., (*3)

<?php
/** @var \Minishlink\WebPush\WebPush */
$webPush = $this->container->get('minishlink_web_push');

The bundle provides a new minishlink_web_push service that returns an instance of Minishlink\WebPush\WebPush., (*4)

For more info on what you can do with $webPush, check Minishlink/web-push., (*5)

Installation

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

public function registerBundles()
{
    $bundles = array(
        // ...
        new Minishlink\Bundle\WebPushBundle\MinishlinkWebPushBundle(),
        // ...
    );
}

Configuration

Here is the default configuration, you may change it in your app/config/config.yml., (*6)

minishlink_web_push:
  VAPID:
    subject: https://yoursite.com # can be an URL or a mailto:
    publicKey: ~88 chars          # uncompressed public key P-256 encoded in Base64-URL
    privateKey: ~44 chars         # the secret multiplier of the private key encoded in Base64-URL
    pemFile: path/to/pem          # if you have a PEM file and can link to it on your filesystem
    pem: pemFileContent           # if you have a PEM file and want to hardcode its content
  ttl: 2419200                    # Time to Live of notifications in seconds
  urgency: ~                      # can be very-low / low / normal / high
  topic: ~                        # default identifier for your notifications
  timeout: 30                     # Timeout of each request in seconds
  automatic_padding: true         # pad messages automatically for better security (against more bandwith usage)

The Versions

24/05 2018
12/02 2018

v2.0.x-dev

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

Symfony Bundle around the WebPush library

  Sources   Download

MIT

The Requires

 

The Development Requires

web push notifications webpush

12/02 2018

v2.0.0

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

Symfony Bundle around the WebPush library

  Sources   Download

MIT

The Requires

 

The Development Requires

web push notifications webpush

16/02 2017

v1.4

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

Symfony Bundle around the WebPush library

  Sources   Download

MIT

The Requires

 

The Development Requires

web push notifications webpush

16/02 2017

v1.3.1

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

Symfony Bundle around the WebPush library

  Sources   Download

MIT

The Requires

 

The Development Requires

web push notifications webpush

08/11 2016

v1.3

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

Symfony Bundle around the WebPush library

  Sources   Download

MIT

The Requires

 

The Development Requires

web push notifications webpush

27/10 2016

v1.2

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

Symfony Bundle around the WebPush library

  Sources   Download

MIT

The Requires

 

The Development Requires

web push notifications webpush

28/04 2016

v1.0

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

Symfony Bundle around the WebPush library

  Sources   Download

MIT

The Requires

 

The Development Requires

web push notifications webpush

03/12 2015

0.3.0

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

Symfony Bundle around the WebPush library

  Sources   Download

MIT

The Requires

 

The Development Requires

web push notifications webpush

30/11 2015

0.2.0

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

Symfony Bundle around the WebPush library

  Sources   Download

MIT

The Requires

 

The Development Requires

web push notifications webpush

28/11 2015

0.1.0

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

Symfony Bundle around the WebPush library

  Sources   Download

MIT

The Requires

 

web push notifications webpush