This app shows how to build a basic IVR (Interactive voice response) system with PHP and Twilio.
- A user calls their Twilio phone number
- The user is then presented with 3 options: 1) Talk to sales, 2) The company's hours of operation, or 3) The company's address
- If the user chooses one of the first two options, they get a voice response on the call with more information
- If they choose the third option, they will receive an SMS with the company's address information
To run the code, you will need the following:
- PHP 8.3
- Composer installed globally
- A network testing tool such as curl or Postman
- ngrok and a free ngrok account
- A Twilio account (free or paid) with an active phone number that can send SMS. If you are new to Twilio, create a free account.