Company
Date Published
Author
Michael Heap
Word count
990
Language
English
Hacker News points
None

Summary

To receive an SMS delivery receipt with PHP, you need to install the Slim framework Let's install it now with composer `Vonage will make either a GET or a POST request to your application with the data, depending on how you configured your account`. You'll create a new Slim application and register a handler that responds to both HTTP methods. To handle the incoming request, you'll log the request values to the terminal using error_log. Once your local PHP server is running, you can expose it to the internet by using ngrok to generate a URL. Finally, you'll configure the webhook URL for delivery receipts in the Vonage dashboard and send an SMS to test the functionality.