Skip to content

Releases: web-push-libs/web-push-php

v4.0.1

12 Apr 12:22
Compare
Choose a tag to compare

v4.0.0

17 Mar 20:47
75d198b
Compare
Choose a tag to compare

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

17 Mar 10:50
18ddf3a
Compare
Choose a tag to compare
  • Optimized encryption keys generation (thanks @Spomky!)

v3.0.1

16 Mar 19:10
Compare
Choose a tag to compare
  • Fixed random rare case where the encryption failed

v3.0.0

16 Mar 12:50
c09b8e2
Compare
Choose a tag to compare
  • [BREAKING] PHP 7.1+ is now necessary
  • Another encryption library (web-token) is being used. It leverages the new encryption library in PHP7.2 for a performance boost. Thanks @Spomky!

v2.0.1

22 Nov 20:05
Compare
Choose a tag to compare
  • The tests folder is ignored when installed with composer and --prefer-dist (thx @staabm!)

v2.0.0

12 Oct 20:33
Compare
Choose a tag to compare
  • Removed compatibility for PHP < 7
  • Updated dependencies

v1.4.3

28 Jun 19:11
Compare
Choose a tag to compare
  • Added info/warning for common issues encountered by users
  • Travis testing is fixed (thx @gauntface)

v1.4.2

13 May 13:42
Compare
Choose a tag to compare
  • 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

13 Mar 19:14
Compare
Choose a tag to compare
  • Optimizations