As @kennethlimcp said Webhooks is the easy way! Or a simple TCP client will do the job.. you could use POST or GET, either would work depending on your PHP script.
Here is a link to my doorbell which posts to a PHP script on my server, you may find some goodies in there