- create composer.json and put the contents of the composer gist.
- execute
composer install
- create index.php (or whatever) and put the contents from the php code inside
- create a discord webhook and get the URL
- put the URL in your index.php
- use the URL to your script in a github push webhook
If you push something, this script will get called and will send the data to discord.