I recently realized that every time I had to do an integration with Twilio for sending SMS in a Laravel project, I used a custom wrapper around the Twilio PHP library to help me simplify the process. However, this became a bit monotonous for me as I always had to copy and paste this wrapper every time I was starting a new Laravel project. In this tutorial, you’ll join me in learning how to build a Laravel Twilio Package to eliminate copying and pasting and benefit from package management. This will also allow other developers such as yourself to make use of this package.
To complete this tutorial, you will need the following:
Setting up a New Package
We’ll be using Composer to set up the package. From the terminal,
cd into your project’s directory and run the following command:
$ composer init
In today’s world, almost every existing application is a real-time app. From chat apps, online games, ride-hailing apps, to collaboration tools, users expect to see instant updates as other users interact with the application. This goes to show that application state synchronization is important in building modern and interactive applications.
Twilio Sync offers a state synchronization API for managing synchronized application states at scale across multiple devices and users.
In this post you will learn how to add real-time functionality to a Node.js application using Sync. You will be building a sports survey application that shows the results of the survey in real time.
To build the case study project for this post you need to have the following development tools installed on your system:
In this tutorial, we will look at how we can send out periodic emails in a Laravel application using Twilio SendGrid.
In order to follow this tutorial you will need:
- Basic knowledge of Laravel
- Laravel installed on your local machine
- Composer globally installed
- MySQL set up on your local machine
- SendGrid Account
Start off by creating a new Laravel project for your application. This can be done either by using the Laravel installer or Composer. For this tutorial, the Laravel installer will be used. If you don't have the Laravel installer already installed, head over to the Laravel documentation to see how to. If installed, open up a terminal and run the following command to create a new Laravel project:
$ laravel new periodic-emails
Next, you need to install the Sendgrid PHP Library which will be used for communicating with the SendGrid service. Open up a …
Call routing is an incredibly powerful tool for managing inbound calls, whether it be for personal or professional use. A person can route a call from VIP clients to a specific number, a call from their mother to a personal cell phone, and play a joke audio clip for their best friend when they call. This is the power of Twilio Programmable Voice.
In this tutorial, you will be setting up a Django project using virtual environments, creating a free Twilio account, provisioning a phone number, and finally, routing inbound calls based on the caller, to do things like play a recording, use text-to-speech to speak something, or forward the call to a personal cell phone.
By the end of this tutorial, you will be able to:
- Set up a free Twilio account
- Identify inbound calling numbers using Twilio Programmable Voice in a Django app
- Answer phone calls using TwiML …
If your application requests phone numbers from your users, it’s a good idea to ensure that the numbers they provide are valid. The Twilio Lookup API provides an easy way to obtain information about any phone number, such as validity, carrier, line type, and even caller ID information for certain numbers in the United States.
In this article, you will learn how to build a simple serverless function that performs phone validations. The application will be hosted on the AWS Lambda serverless platform and will be written in Python. Even if phone validation isn’t your thing, you will find that the techniques presented in this article can be applied to other APIs from Twilio or even other service providers.
To follow this tutorial you need the following items:
- An AWS account. If you don’t have an AWS account yet, sign up for an account for free and …
Our world as it is today has experienced remarkable growth in various fields and aspects of life due to the consistent and creative distribution of information across various media.
In this article, we use the Twilio API to build an application that provides information on food and recipes to users over WhatsApp. This approach to accessing information will definitely feel more fun and natural to food lovers and chefs with WhatsApp installed on their phones.
A user sends a message containing the name of a particular recipe he/she is interested in learning about or preparing and receives a response with instructions to be followed to prepare the meal.
To follow this tutorial, you are expected to:
Phone number validation is the process of verifying a phone number is valid and in the right format. It’s an important aspect and a popular measure for applications and services that deal with collecting phone numbers from users. In this tutorial we’ll use Python and Azure Functions to develop a simple serverless HTTP function that integrates with Twilio’s Lookup API to validate phone numbers.
To follow along, you’ll need the following:
- A Twilio Account. If you use this link to register, you will receive $10 credit when you upgrade to a paid account.
- An Azure Account
- Python 3.6 or Python 3.7 - At the time of writing this article, these are the Python versions, Azure Functions currently supports.
- VS Code - The Python extension for VS code needs to be installed as well.
Set up an Azure Function App
To get started, we need to create an …
Private connections guarantee quality, security, and network performance. For businesses looking for these factors, Twilio’s Interconnect is the answer. Interconnect was built for the customers who need quality of service and secure network performance. Twilio is committed to expanding our global coverage of private network connectivity locations, providing our customers with better call quality options around the world.
A few months ago we launched a new Interconnect Exchange in Europe. We are taking that momentum and expanding into other regions like the Asia Pacific.
Now, we are excited to announce the expansion of Interconnect exchange in APAC with the addition of a new location in Sydney, Australia, AU1. The new exchange provides customers with connectivity via cross-connect, VPN, Bring-Your-Own-MPLS, and the Equinix Cloud Exchange with initial product support for Elastic SIP Trunking, SIP Interface, and Voice WebRTC.
Twilio Interconnect Benefits
If voice quality is mission-critical to your business, Interconnect …
Black History Month is a celebration of the achievements and history of the members of the African Diaspora. There is a long history of innovation and courage in our history that often does not get the same time in the spotlight as other historical figures
Black History Month in the US has its roots in the 1920s, when historian Carter Woodson created “Negro History Week”. He believed that preserving the stories of our history was key to survival and intellectual development, famously writing “if a race has no history, it has no worthwhile tradition, it becomes a negligible factor in the thought of the world, and it stands in danger of being exterminated.”
Later on, members of the Black United Students group at Kent State University worked to expand Negro History Week into Black History Month, which was first celebrated in February of 1970. The celebration caught on quickly, and …
Chatbots are programs that communicate some way with humans. They can be very basic, responding to keywords or phrases, or use something like Twilio Autopilot to take advantage of natural language understanding (NLU) to provide a richer experience and build out more complicated conversations.
In this tutorial we are going to see how easy it is to get started building chatbots for WhatsApp using the Twilio API for WhatsApp and the Ruby web framework Sinatra. Here's an example of the conversation we're going to build:
What you'll need
To build your own WhatsApp bot along with this tutorial, you will need the following:
- Ruby and Bundler installed
- ngrok so we can expose our local webhook endpoints to the world in style
- A WhatsApp account
- A Twilio account (if you don't have one, sign up for a new Twilio account here and receive $10 credit when you upgrade)