Receiving an SMS with PHP
You can receive an SMS with PHP using the Vonage API, which makes an HTTP request to your application containing information about the incoming SMS. To do this, you'll need a Vonage API account and a virtual phone number purchased through the Vonage CLI. You'll use the Slim framework to handle both GET and POST requests to the `/webhooks/inbound-sms` endpoint, logging the received parameters in the console. Once your application is complete, you can expose it with ngrok to send HTTP requests to your local application, configuring your Vonage account to use this URL as the callback for inbound SMS.
Company
Vonage
Date published
Nov. 3, 2020
Author(s)
Michael Heap
Word count
793
Language
English
Hacker News points
None found.