From 4455fae139211d5c812918d5c42e64d5fae3a8b6 Mon Sep 17 00:00:00 2001 From: Louis Lagrange Date: Fri, 21 Apr 2017 22:32:04 +0200 Subject: [PATCH] Add README --- README.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..362d78d --- /dev/null +++ b/README.md @@ -0,0 +1,29 @@ +# Web Push example in PHP + +Navigating through the commits and files will help you build: +- on the client + - a user friendly opt-in push notification button +- on the server + - an endpoint for managing your push notification subscriptions + - an endpoint that triggers push notification + +## Requirements +- Chrome or Firefox +- PHP 5.6+ + - gmp + - mbstring + - curl + - openssl + +## Installation +```bash +$ composer install minishlink/web-push-php-example +``` + +## Usage + +```bash +$ php -S localhost:8000 router.php +``` + +And open [http://localhost:8000](localhost:8000).