Installation $ cd web-push-php-example You can change the VAPID keys in the keys folder with this guide. Don't forget to update the public key in app.js too. Usage $ php -S localhost:8000 router.php And open localhost:8000.