WusThanhDieu/spam-sms ? reverse-engineered prompt

Reverse engineered prompt

Build me a simple PHP endpoint that acts like a callback API for sending a test SMS request.

I want one file I can host on my server, where someone can call it with a phone number in the URL and a secret header, and it returns a JSON response. Keep it lightweight and easy to copy onto any PHP hosting. Please make it validate the input, check the custom header, and respond clearly with success or error messages.

If you need to, look up the current PHP curl and JSON best practices online, but keep the final result very simple.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab