How To: Send an SMS Text Message via the Twilio REST API with PHP
Time to read: 1 minute
I’ve put together a short video showing how easy it is to send a text message via the Twilio REST API with PHP. This example uses our Twilio PHP Library available on GitHub. Enjoy!
Sending SMS with Twilio REST in Five Easy Steps
In this video I demonstrate how to send an SMS in PHP in five easy steps:
- Download the Twilio PHP Helper Library from GitHub
- Create a new file and add a reference to the helper library
- Set up your account credentials and message data
- Send the message by posting to the API
- Make sure the message went through
Additional Resources
Be sure to check out our SMS Alerts and Notifications HowTo for more examples of how to use the REST API with PHP. We also have a variety of examples in other languages as well.
If you’d like us to put together an example in your language of choice let us know in the comments below!
Related Posts
Related Resources
Twilio Docs
From APIs to SDKs to sample apps
API reference documentation, SDKs, helper libraries, quickstarts, and tutorials for your language and platform.
Resource Center
The latest ebooks, industry reports, and webinars
Learn from customer engagement experts to improve your own communication.
Ahoy
Twilio's developer community hub
Best practices, code samples, and inspiration to build communications and digital engagement experiences.