How can I use Web Push notifications in my PHP website?

Written by João Silva Updated over a week ago

The Web Push API "magic" happens within a JavaScript service worker running in the user's browser, so it doesn't really matter which tech you are using in your web server. The important part is that you host a correctly coded service worker along with a properly setup manifest file.