An example for sending Web Push notifications, using web-push-php
Upgrade to web-push-php v5.2.0
Full working example