Phone Verification via Voice with Laravel, Twilio, S3 and AWS Polly
Twilio offers an array of products and solutions that enable you to engage your customers. One of which is Programmable Voice that allows you to make and receive calls, as well as monitor calls, using the Voice API.
In this tutorial, you will learn how to use Twilio’s Programmable Voice API to implement a phone number verification system that places a voice call to the user’s phone from your PHP Laravel Application. By the end of the tutorial, you will have developed a PHP Laravel Application with an authentication system that can verify a user’s phone number, by placing a call through to it.
- PHP environment running 7.3+
- A Twilio Account
- An AWS Account and S3 bucket
Setup Laravel and Twilio PHP SDK
Firstly, we need to download Composer, a PHP package manager. We will use Composer to install Laravel and other ...
How to Create an SMS Weather Forecast App using PHP & Twilio
Imagine you’re on vacation and have limited or no access to the internet. Maybe you would like to go surfing or skiing and your access to a forecast is non-existent. This type of scenario is a very good use case of forecasting weather using SMS and a server-side language such as PHP. That's what we are going to learn how to build in this tutorial.
- PHP 7 development environment
- Global installation of Composer
- Twilio Account
- An OpenWeatherMap Account
- Global installation of ngrok
Set Up Our Development Environment
To kick start our project we will need to create a project directory for it. You may use
Weather-Appas this is what I will be using too. In the folder create the following files.
Next, we need to set up our .env file.
NOTE: The .env file is a hidden file we create on ...
Your Phone, Your Call - Part I - Eliminating Robocalls
All of us have had the experience. A meeting or a dinner interrupted by our phone ringing with some random number on the screen. Click ‘ignore’. Maybe a minute later we get the notification of a new voicemail (maybe in another language) touting a new deal on satellite TV, or better yet, alerting you to an urgent "lawsuit from the cops." Or rather, they don't leave a voicemail at all... because they'll just robocall you again in 20 minutes, hoping you'll answer from a different random number.
Sound familiar? If your experience is anything like mine, your "missed calls" screen looks a bit like mine:
Literally my missed calls screen. Yours too?
Robocalling has reached epic proportions and we're all starting to hate our phones. In fact, according to First Orion, nearly 50% of all US mobile calls made in 2019 are expected to be robocalls. Stop and think ...
How to Track the Conversion Rate of Incoming SMS via a Link Using Google Analytics
You have succeeded in sending a bulk SMS to all your customers to buy your shiny new product, via a link in an SMS. How do you check how many of your customers interacted with the link? We can do this using Google Analytics. Google Analytics is a web analytics service that tracks and report website traffic.
For this tutorial, we will only need a hosted website with a domain.
Creating a Google Analytics account
To create a Google Analytics account go to the URL here and log in with your Google account.
Obtain Tracking ID
The tracking ID is a unique set of characters in the form of
UA-134276880-1that enables tracking for your site. To obtain your unique tracking ID, fill the form as shown below. Click the “Get Tracking ID” button and then accept the terms and conditions as shown in the images below.
Selling 5,000+ Boxes of Girl Scout Cookies with a bit of Twilio Magic
Selling Girl Scout cookies can be challenging, especially if the goal is to sell 5,000 boxes in 50 days! Why would one want to do such a thing? Well, first of all, selling Girl Scout cookies teaches girls life skills such as goal setting, decision making, money management, people skills, business ethics, and so much more. Secondly, the Girl Scouts of San Gorgonio council offers some amazing incentives. In addition to the many prizes like a robot, 3D printer, iPad, and a one week trip to Canada at 4,000 boxes sold (and much more). The prize for selling 5,000 boxes in 2019 is a two week trip to China and Japan, including an entire day at Shanghai Disney! Going to Japan has been a bucket list item for my ambitious daughter, Audrey, to travel to since preschool. So, game on!
Out of 12,386 registered Girl Scouts ...
Introducing Developer Evangelist Matthew Gilliard
When I was a young kid we used to take family holidays from the UK to France. I remember meeting other kids on holiday with their families for a week at a time, spending time playing with them and having loads of fun.
These other kids were from exotic-sounding places like Germany and France. Despite enjoying the same kinds of games and having loads of fun together we didn’t speak the same language and could never have a conversation. As children we had a lot in common but our lives and toys and everything were so different.
Since that time I always wanted to travel - to meet people and see what life is like in different places - how it is similar and how it is different.
Living and Working Abroad
I was very shy of public speaking when I was young. After two years of working as a programmer ...
Generate Songs with Markov Models using Server-Side Swift, Perfect, and Twilio SMS
I like music and coding and one way to make music with code is by predicting words and generating a new song. You can do this with Markov models, as introduced in this last Twilio blog post. Now let's learn how to train a model on a .txt file to generate a song and then generate another song or text via Twilio SMS with server-side Swift and Perfect.
To code along with this post you should have the following:
- A Twilio account to buy a phone number
- ngrok, a tool for putting the app running on your local machine on the web
First, make a new Single View project in Xcode and run
pod initon the command line in the directory where your Xcode project exists to create a Podfile in order to install the Markov Model library via CocoaPods, as further detailed in the first ...
How to Create a Voice-Based Reservation System in Laravel with Twilio <Pay>
“Please listen carefully, as our menu options have changed.”
It is rare that I find myself memorizing a company’s IVR options. It is much more common for me to repeat "Representative" into the phone and press the 0 key until something works.
As a small business owner, I find most IVRs to be out of touch with reality. While I want to engage my customers 24/7/365, I don’t want to make their lives difficult. I recently had an experience with an airline call center that allowed me to take control of my reservation without ever speaking to a representative.
As a developer and Twilio fan, I began writing pseudo-code in my head of how I could build a simple call center that would not only give my customers a personalized self-service portal, but would also allow for my employees to focus their time on more ...
Encrypting Cookies with Angular Universal and Node.js
Cookies are a ubiquitous feature of web applications, as anyone clicking GDPR notifications for the last several months has realized. Securely handling the data in those cookies is just as much a requirement as the consent notification. Encrypting your Angular and Node.js application cookies is a way to prevent unauthorized access to confidential and personal information, and it’s easy to implement.
As you know, using an httpOnly cookie helps prevent cross-site scripting (XSS) attacks. (You can learn more in another post.) But what about protecting one registered user’s data against another registered user? Are cookies vulnerable to attacks from trusted users?
This post will demonstrate how authenticated users can get unauthorized access to other users’ cookie data. It will also show you how to encrypt your cookies so the data can only be read by your code, not by users.
The code in this post uses the ...
Why I Belong at Twilio
Imagine all of the different people that might speak to a business, all of the different reasons they might do so, all of the different channels they might use, and all of the different experiences they need to have when they get in touch.
Now imagine building a future of communication that enables businesses to respond to all of those needs, in all of those different moments; to deliver experiences that aren’t just good enough, but are brand-enhancing and loyalty-inducing.
To do so, you need engineering skill and technical ability. But you also need imagination and empathy. You need people who can understand each of your customers and each of your customers’ customers and help every organisation find a way to deliver experiences that make a difference. You need people who can help other people imagine what’s possible, in order to help make it possible.
Well, that’s ...