Next Generation PHP Helper Library Release

Nextgen PHP libraries

Today, we are pleased to announce the general availability of our next generation PHP helper library. The library gives you new functionality and takes advantage of modern PHP language features. We’ve rebuilt it from the ground up based on the developer feedback we received from you. What’s new Earlier this year we introduced the new Twilio Helper Libraries and provided some insights into Twilio’s effort to… Read More

A Simple Way to Receive an SMS with PHP and Twilio


In this tutorial we’ll receive and reply to a text message in PHP. If you’re the type who likes to skip to the punchline, create a file named message.php and paste in this code:

To learn more about how this works, watch this one minute video, or just keep reading. Twilio’s HTTP Request When someone texts your Twilio number, Twilio makes an HTTP request to your app. Your app parses… Read More

Send SMS with PHP and Twilio in 60 seconds


It takes just a few lines of code and even fewer minutes to send your first text message with PHP and Twilio. Here’s how: Sign up for a free Twilio account and buy a phone number. Install the PHP helper library with Composer: composer require twilio/sdk:4.* then put   require "vendor/autoload.php'; at the top of your file. Find your account SID and auth token in your console dashboard, and your phone number… Read More

How to Validate Phone Numbers in PHP with the Twilio Lookup API

Screen Shot 2016-03-21 at 3.00.30 PM

Twilio Lookup is a phonebook REST API that you can use to check whether a number exists, format international numbers to local standards, determine whether a phone can receive text messages, and even discover information about the carrier associated with that phone number. In this post, we’re going to learn how to deal with valid and invalid numbers using the Twilio PHP library. Whether you need to… Read More

Exchange Solutions Builds An IVR Platform For Personal Customer Support, Runs 660k Calls In 10 Days


A few national retailers are all vying for a limited pool of customers. The pressure to set themselves apart from their competitors is higher than ever. The only way to do that is by giving customers a fantastic experience. One leading national retailer wanted to level up their customer loyalty program, replacing the old program and offering phone support for the new program. They enlisted the… Read More

EmoPhone: How To Build A Twilio-Powered IVR Using PHP and ngrok


Before cell phones, there were only landline phones. In high school, I frequently called the person I had a crush on at home. Calling a semi-private phone number to have private conversations was always a rough time. I hoped against all odds that my crush would be the one answering my call and not their parent or sibling. Awkward conversations with disapproving fathers were plentiful in… Read More

Finding Out When to Buy World Series Tickets with PHP, Guzzle, Seat Geek API and Twilio


Born and raised in Kansas City, I’ve been waiting my whole life to see the Royals win a World Series. This year “The Boys in Blue” have made it back to the fall classic and they’re playing the team that represents my adopted home, the New York Mets. I have my Royals cap ready and I want to support KC when they play in the greatest… Read More

How to Build Call Tracking with Google Analytics, Twilio and PHP


“Half the money I spend on advertising is wasted. The trouble is, I don’t know which half.” – John Wanamaker Dear Saul Goodman, Esq., First off, my compliments on your phenomenally effective advertising. I can’t drive down the streets of Albuquerque, sit at a bus stop or watch my favorite shows on AMC without seeing one of your ubiquitous “Better Call Saul” ads. Judging from the,… Read More