@@ -9,7 +9,7 @@ WebPush can be used to send notifications to endpoints which server delivers web
9
9
the [ Web Push API specification] ( http://www.w3.org/TR/push-api/ ) .
10
10
As it is standardized, you don't have to worry about what server type it relies on.
11
11
__ * Currently, WebPush doesn't support payloads at all.
12
- It is under development (see [ "payload" branch] ( https://github.com/Minishlink/web-push/tree/payload ) .* __
12
+ It is under development (see [ "payload" branch] ( https://github.com/Minishlink/web-push/tree/payload ) ) .* __
13
13
14
14
``` php
15
15
<?php
@@ -46,8 +46,7 @@ $apiKeys = array(
46
46
);
47
47
48
48
$webPush = new WebPush($apiKeys);
49
- $webPush->sendNotification($endpoints[0]); // send one notification
50
- $webPush->sendNotifications($endpoints); // send multiple notifications
49
+ $webPush->sendNotification($endpoint);
51
50
```
52
51
53
52
### Changing the browser client
@@ -60,6 +59,7 @@ Timeout is configurable in the constructor.
60
59
61
60
use Minishlink\WebPush\WebPush;
62
61
62
+ $client = new \Buzz\Client\Curl();
63
63
$webPush = new WebPush(array(), null, null, $client);
64
64
```
65
65
@@ -80,9 +80,6 @@ $browser = $webPush->getBrowser();
80
80
### Is the API stable?
81
81
Not until the [ Push API spec] ( http://www.w3.org/TR/push-api/ ) is finished.
82
82
83
- ### What about security?
84
- Internally, WebPush uses the [ phpecc] ( https://github.com/phpecc/phpecc ) Elliptic Curve Cryptography library.
85
-
86
83
### How to solve "SSL certificate problem: unable to get local issuer certificate" ?
87
84
Your installation lacks some certificates.
88
85
0 commit comments