title: Php: Create web push notification
body: <p>I want to create a web push notification in Php but I don't have the exact procedure for it. Following is the code I found, but it is not working.</p>
  
  <pre><code>  &lt;?php
     require __DIR__ . '/../vendor/autoload.php';    
     use Minishlink\WebPush\WebPush;
  
  
  
      $subscription = json_decode(file_get_contents('php://input'), true);
  
      $auth = array(
     'VAPID' =&gt; array(
      'subject' =&gt; '`enter code here`',
      'publicKey' =&gt; '**********',
      'privateKey' =&gt; '***********',
     ),
   );
  
      $webPush = new WebPush($auth);
  
      $res = $webPush-&gt;sendNotification(
      $subscription['endpoint'],
      "Hello!",
       $subscription['key'],
       $subscription['token'],
       true
     );
  </code></pre>
  
  <p>Please suggest the correct steps.</p>