PHP code example of minishlink / web-push-bundle
1. Go to this page and download the library: Download minishlink/web-push-bundle library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
minishlink / web-push-bundle example snippets
/** @var \Minishlink\WebPush\WebPush */
$webPush = $this->container->get('minishlink_web_push');
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new Minishlink\Bundle\WebPushBundle\MinishlinkWebPushBundle(),
// ...
);
}