Releases: web-push-libs/web-push-php
Releases · web-push-libs/web-push-php
v4.0.1
- Add
reasonPhrase
to error result (thx @The-Hasanov!)
v4.0.0
See migration commit in web-push-php-example
- Support new
aes128gcm
content encoding (used notably in MS Edge)
You get your content encoding in your client JS code, and store it in your database alongside the rest of the subscription:
const contentEncoding = (PushManager.supportedContentEncodings || ['aesgcm'])[0];
- [BREAKING] You must use a new Subscription object in
sendNotification
Before:
use Minishlink\WebPush\WebPush;
$webPush->sendNotification(
'endpoint',
'payload', // optional (defaults null)
'userPublicKey', // optional (defaults null)
'userAuthToken' // optional (defaults null)
);
After:
use Minishlink\WebPush\WebPush;
use Minishlink\WebPush\Subscription;
$subcription = Subscription::create([
'endpoint' => 'endpoint',
'publicKey' => 'public key', // optional
'authToken' => 'authToken', // optional
'contentEncoding' => 'aesgcm', // optional, one of PushManager.supportedContentEncodings
]);
$webPush->sendNotification(
$notification['subscription'],
$notification['payload'] // optional (defaults null)
);
v3.0.2
v3.0.1
- Fixed random rare case where the encryption failed
v3.0.0
v2.0.1
v2.0.0
- Removed compatibility for PHP < 7
- Updated dependencies
v1.4.3
- Added info/warning for common issues encountered by users
- Travis testing is fixed (thx @gauntface)
v1.4.2
- Endpoints that return a 400 HTTP response are no longer considered as expired (thx @marcovtwout) (see #101)
- Travis testing is fixed (thx @gauntface)
v1.4.1
- Optimizations