Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Twilio Best Practices

You're reading from   Twilio Best Practices Learn how to build powerful real-time voice and SMS applications with Twilio

Arrow left icon
Product type Paperback
Published in Dec 2014
Publisher
ISBN-13 9781782175896
Length 178 pages
Edition 1st Edition
Tools
Arrow right icon
Toc

Table of Contents (10) Chapters Close

Getting started with the Twilio PHP library


When you use one of Twilio's API libraries instead of working directly with more low-level HTTP requests, you'll interact with Twilio using simpler code that abstracts away details such as forming URLs, authenticating, and catching errors.

Twilio offers libraries in most major languages, but we'll look at PHP in order to stay in sync with Chapter 1, Working with TwiML.

The principles will be similar if you're using another language, but the syntax and grammar will be different. To see Twilio in action in Ruby, Python, C#, Java, Node.js, and Apex, head to Chapter 5, Twilio in your language.

Downloading the PHP library

First, you'll need to download the library. There are two options for doing this, which are matched across most languages you might use.

Downloading the code manually

Twilio publishes the source code for its API libraries on GitHub (https://github.com). GitHub is the most popular platform for online sharing and collaborating on code and...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime