PHP Classes

File: MyVapid.php.org

Recommend this page to a friend!
  Packages of Stefan Kientzler   PHP Web Push Notifications Server   MyVapid.php.org   Download  
File: MyVapid.php.org
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Web Push Notifications Server
Queue and push notifications to Web users
Author: By
Last change:
Date: 6 years ago
Size: 376 bytes
 

Contents

Class file image Download
<?php
use SKien\PNServer\PNVapid;

function getMyVapid()
{
    /**
     * set the generated VAPID key and rename to MyVapid.php
     *
     * you can generate your own VAPID key on https://tools.reactpwa.com/vapid.
     */
     $oVapid = new PNVapid(
     "mailto:yourmail@yourdomain.de",
     "the-generated-public-key",
     "the-generated-private-key"
     );
    return $oVapid;    
}