WebPush
Web Push library for PHP

WebPush can be used to send push messages to endpoints as described in the Web Push protocol.
This push message is then received by the browser, which can then create a notification using the service worker and the Notifications API.
Requirements
PHP 8.2+ and the following extensions:
- bcmath and/or gmp (optional but better for performance)
- mbstring
- curl
- openssl (with elliptic curve support)
There is no support and maintenance for older PHP versions, however you are free to use the following compatible versions:
- PHP 5.6 or HHVM:
v1.x
- PHP 7.0:
v2.x
- PHP 7.1:
v3.x-v5.x
- PHP 7.2:
v6.x
- PHP 7.3 7.4:
v7.x
- PHP 8.0 / Openssl without elliptic curve support:
v8.x
- PHP 8.1:
v9.x
This README is only compatible with the latest version. Each version of the library has a git tag where the corresponding README can be read.