Content Deep Dive
Make Phone Calls Using PHP and Twilio Programmable Voice
Blog post from Twilio
Post Details
Company
Date Published
Author
Matthew Setter
Word Count
823
Language
English
Hacker News Points
-
Summary
To make a phone call using PHP and Twilio Programmable Voice, you need to create an environment with the required dependencies installed, set up your Twilio credentials, and write a code that uses the Twilio PHP Helper Library to interact with Twilio's REST APIs. The code creates a new TwiML Bin, which is a publicly accessible URL with the TwiML call instructions, and then makes a phone call using the `twilio->calls->create()` method, passing in the recipient's phone number, the Twilio phone number, and the publicly accessible URL with the TwiML call instructions. The code prints the call's SID to the terminal after a successful call is made, allowing you to test the functionality of the code.