Following on from my recent article about Laragon behind Cloudflared, which was working great, I wanted to move my webhook testing to local development too and began looking for a suitable repository to do this, ideally without Docker.
I immediately started looking on GitHub and found exactly what I was looking for https://github.com/tarampampam/webhook-tester. This comes with a Windows binary, which i downloaded and put in my pathed folder as webhook.exe
Running the hook
Running the hook is a simple command; now run it on port 18080, and it’s available on the localhost. The next thing I needed to do was get it externally reachable. The command below only makes it reachable on my local machine:
webhook.exe start --port 18080PHPAs I already had the tunnel, I modified the config a little so it looked like this
tunnel: 422979c4-XXXX-XXXX-XXXX-XXXXXX
credentials-file: C:\Users\XXXXXXX\.cloudflared\422979c4-XXXX-XXXX-XXXX-XXXXXX.json
ingress:
- hostname: webhook.XXXXXX.co.uk
service: http://localhost:18080
- hostname: mylaragondomain.com
service: http://localhost:80
- service: http_status:404YAMLsaved it and reset my tunnel, and just like that, I now have my own local version of a webhook tester ready to run at a moment’s notice
