How to Create an SMS Portal With Laravel and Twilio
At some point in your application workflow, you may need to pass important information to your users. Thanks to the advancement in web technologies, this can easily be done with push notifications. However, most of these services require your users to have an internet connection and unfortunately, this isn’t always the case. Luckily, we can overcome this by using a notification system that does not rely on the internet.
In this tutorial, we will teach you how to use Twilio’s Programmable SMS to create an SMS notification portal using Laravel. After we’re finished, you would have developed a custom SMS notification portal that allows you to notify your users via a dashboard with SMS.
In order to follow this tutorial, you will need:
- Basic knowledge of Laravel
- Laravel Installed on your local machine
- Composer globally installed
- MySQL setup on your local machine
- Twilio Account
Setup Project ...
How to Build an SMS Payment Notification System for Stripe with Laravel
For many online stores, it’s important as a business owner to be able to receive real-time notifications whenever a sale occurs in your store. In this tutorial, we will be looking at how we can achieve real-time notifications via SMS using Twilio’s REST API whenever a new sale occurs on your store.
To follow along, you’ll need the following:
Create A New Laravel Project
To get started, we need to install a new Laravel project. There are different ways to go about this, but for the sake of this tutorial, we’ll be using Composer. If you’d prefer an alternative, you can visit the docs to learn about the different ways to install a new Laravel project.
Open your terminal, and run the following command:
$ composer create-project ...
How to Send an SMS When Your Cron Job Fails
A modern-day business that relies heavily on tech to operate requires virtually no downtime at all. Case scenario would be an e-commerce business which needs to reconcile its sales every day through cron jobs that run at scheduled times of the day. Mitigating issues when the crons fail takes time since there is no way to alert the stakeholders. This may lead to huge losses or embarrassment to the company depending on the type of reports you are generating via cron.
In this tutorial, we are going to learn how to use the Twilio Programmable SMS API to send text messages when a cron job fails. We will create a simple cron job that sends weekly emails to users then integrate with Twilio Programmable SMS API to send an SMS when the cron fails.
Ensure you have the following installed in your local development environment.
- PHP - Version 7.0 ...
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 ...
How to build a CLI with Node.js
Command-line interfaces (CLIs) built in Node.js allow you to automate repetitive tasks while leveraging the vast Node.js ecosystem. And thanks to package managers like
yarn, these can be easily distributed and consumed across multiple platforms. In this post we'll look at why you might want to write a CLI, how to use Node.js for it, some useful packages and how you can distribute your new CLI.
Why create CLIs with Node.js
One of the reasons why Node.js got so popular is the rich package ecosystem with over 900,000 packages in the
npmregistry. By writing your CLIs in Node.js you can tap into this ecosystem including it's big amount of CLI-focused packages. Among others:
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 ...