-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
55f56d3
commit 4455fae
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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). |