Build the future of communications.
Start building for free

"php" posts

  • By Michael Jaroya
    Send Inspirational Quotes Every Morning in PHP Using Cron, SendGrid, Twilio SMS and Quote APIs Create A Daily Inspirational App in PHP.png

    Ever had one of those mornings when you woke up unmotivated, but read a quote and the energy returned? That is the power of positive and motivational quotes.

    Motivational quotes have a way of making people feel inspired and energized. This phenomenon can be attributed to a combination of factors such as motivational psychology, wordsmithing, and self-selection.

    In this tutorial, I am going to teach you how to create an app that automatically sends you motivational quotes every morning. Before we start, here is a motivational quote to uplift you as you follow along.

    Believe in yourself! Have faith in your abilities! Without humble but reasonable confidence in your own powers, you cannot be successful or happy. – Norman Vincent Peale

    Getting Started

    To complete this tutorial, you will need the following:

    Create a New Laravel Project

    Let’s create a ...

    Read More
  • By Marcus Battle
    Create Your Own Phone Backup Service using PHP, Twilio SMS, DigitalOcean Spaces, and Laravel Create a Phone Backup Service using Twilio SMS.png

    Have you ever had a voicemail from a loved one that you wanted to keep forever? Maybe a contact that you wanted to save but didn’t want to add to your phone? Whatever the use case, it’s almost impossible to backup some types of media, like voicemail and contacts, without an app.

    We're going to learn how to create a phone backup service that allows us to manually transfer data via SMS to cloud storage, just by using our phone number.

    We will accomplish this by creating a RESTful API in Laravel, connecting it to Twilio SMS, and adding cloud storage via Digital Ocean Spaces.

    In order to complete this tutorial you will need the following:

    At the time of writing, DigitalOcean does not provide an official PHP API for connecting to its object storage ...

    Read More
  • By Brian Iyoha
    Build a Single Page Application with State Management in Angular, Laravel PHP and Twilio Sync Build a Single Page Application with State Management in Angular, Laravel PHP and Twilio Sync.png

    Getting started with Twilio-sync using Laravel

    In your time as a developer, you might find (or have found) yourself needing an easier and faster way to synchronize a user’s data across multiple devices. One way to do this would be to have a single source of state for your data, ideally in the cloud. Twilio provides a great service which can be used to manage and synchronize data in real-time across multiple devices and platforms called Twilio Sync.

    In this tutorial we will take a look at how to make use of Twilio Sync as a data store by building a To-Do application using Laravel and Angular.

    Prerequisite

    In order to follow this tutorial, you will need:

    Getting started

    In this tutorial, we will look at how to take advantage of Twilio Sync to ...

    Read More
  • By Felistas Ngumi
    How to Build a CRUD RESTful API in PHP with API Platform and Symfony 4 How to Build a CRUD RESTful API in PHP with API Platform and Symfony 4.png

    Introduction

    As per the official documentation, API platform is a “powerful but easy to use full-stack framework dedicated to API driven projects”. API platform helps developers significantly speed up their development process, building complex and high performance, hypermedia-driven APIs.

    It ships with Symfony 4, the Doctrine ORM, a dynamic Javascript admin created with React, and React Admin, Varnish Cache server, Helm Chart to help deploy the API in a Kubernetes cluster and a Progressive Web Application skeleton. It also includes a Docker setup for providing Nginx servers to run the API and JavaScript apps. Most inspiring is the ability of API platform to natively generate project documentation with support of OpenAPI!

    In this tutorial, I will take you through how to create a simple bucket list API with CRUD operations.

    Prerequisites

    1. PHP - Version 7.0 or higher.
    2. Docker
    3. Postgres

    Getting Started

    Follow the instructions below to setup your development environment ...

    Read More
  • By Oluyemi Olususi
    Building a Single Page Application with Symfony PHP and React Building a Single Page Application with Symfony PHP and React.png

    Introduction

    Every modern web application built with PHP now requires a huge amount of logic handled at the frontend to enhance and provide a great user experience. PHP frameworks such as Laravel come bundled with support for crafting the client side logic using Vue.js. This amongst other things gives developers the ability to rapidly build applications by combining these technologies.

    Contrary to the structure of Laravel, Symfony as a set of reusable PHP components does not favor a particular library or fronted framework over another. It gives you the flexibility to decide what runs and powers the frontend logic of your application. In this tutorial, I will show you how to seamlessly build a single page application using Symfony and React.

    Once we are done with this tutorial, you would have learned how to combine reusable user interface components built with React and Symfony together.

    Prerequisites

    Basic knowledge of ...

    Read More
  • By Marcus Battle
    Top 7 PHP Tutorials with Twilio for July 2019 Top 7 PHP Tutorials with Twilio for July 2019.png

    From building chatbots to RESTful APIs from scratch, this month’s roundup includes several engaging tutorials. We’ve compiled our top seven PHP tutorials to help you build the future of communications this summer while you’re coding in the air conditioner or at your favorite resort.

    Can you keep a secret?

    Game of Thrones has ended and Avengers has already cycled through the box office, but with the fall season premieres quickly approaching, a new opportunity to spoil your friends' favorite shows is just around the corner. In this intriguing tutorial by Dotun Jolaso, you will learn how to build a spoiler app in PHP with Twilio SMS and Laravel. Your Laravel app will employ bulk SMS messaging via Twilio Copilot to tease subscribers with spoilers after the show airs.

    Everyone needs a little REST

    APIs are not only the backbone of Twilio, but they are also arguably the ...

    Read More
  • By Gary Hockin
    Responding to SMS in PHP using AWS Lambda and Bref lirlC01lUZ-27G-NyFFBrv34hXhjGT9x8FzpwBi8g0eSizEMwtdkfOICi6wok5aYS6eR3Crdg3zO7cJ3hq-iF9Da4etsyTNy48qK_qffrAsklPtWGe3WRpb3u3CiPP9C8WzWTomD

    Every new starter at Twilio has to build an application using one of our products, then demo it to receive their fabled Track Jacket. For my application, because WiFi is always a pain at conferences, I wrote a PHP script that sends you the next talks for a given event.

    Writing this so it worked locally was relatively straightforward with PHP’s inbuilt web server and ngrok, but when I got up to demo this in front of my peers, I didn’t want to be relying on my laptop to be open, awake and responding to the proxied HTTP requests. This code needs to be sitting somewhere on the internet so that it can respond to messages any time of the day or night, and not just when my laptop was open and connected to the wifi.

    Serverless functions are great for this; they allow you to run code ...

    Read More
  • By Dotun Jolaso
    Build a Spoiler App in PHP with Twilio SMS and Laravel TV Show Spoiler App with Twilio SMS & Laravel.png

    In this tutorial, we’ll be building an SMS application that sends out spoiler alerts to our friends every week after the show has been aired. We’ll be making use of Twilio’s Copilot feature to learn how we can send outbound SMS to a large number of people at once.

    Technical Requirements

    To follow along, you’ll need the following:

    Create New Laravel Project

    Let’s install a new Laravel project via the Composer create-project command. From your terminal, run the following command:

    $ composer create-project --prefer-dist laravel/laravel twilio-got-spoiler
    

    This will install a new Laravel project for us in the twilio-got-spoiler directory.

    Creating Models and Migrations

    We’ll be needing two migrations. One for storing the spoilers to be sent out and the other for storing the phone numbers that should receive those spoilers.

    From ...

    Read More
  • By Michael Okoh
    Building and Consuming a RESTful API in Laravel PHP Building and Consuming a RESTful API in Laravel.png

    From your favorite social networks, down to your favorite banking applications, our modern world is driven by a lot of APIs. In this article, you will learn how to build a modern RESTful API and an application that will implement the API.

    Prerequisites

    • PHP 7.1 or Higher
    • Composer
    • MySql
    • Laravel 5.6 or Higher
    • Postman

    To follow along with this tutorial, you should have a basic understanding of the PHP language. Basic knowledge of the Laravel framework is required.

    Understanding our Application

    You will be building a CRUD API. CRUD means Create, Read, Update, and Delete. Our API will have the following endpoints:

    GET /api/students will return all students and will be accepting GET requests.

    GET /api/students/{id} will return a student record by referencing its id and will be accepting GET requests.

    POST /api/students will create a new student record and will be accepting POST ...

    Read More
  • By Brian Iyoha
    Building an SMS-Based Product Verification Application with MySQL and Laravel PHP Building an SMS Based Product Verification Application with MySQL and Laravel PHP.png

    In this tutorial, we will teach you how to use Twilio’s Programmable SMS to create an SMS based product verification application using Laravel. After we’re finished, you will have developed a custom SMS verification system that allows your users to check the authenticity of a product via SMS.

    Prerequisites

    In order to follow this tutorial, you will need:

    Getting Started

    We will start off by creating a new Laravel project. This can be done either using the Laravel installer or Composer. We will be making use of the Laravel installer in this tutorial. If you don’t have it installed, you can check how to set it up from the Laravel documentation. To generate a fresh Laravel project, let’s run the laravel command on our terminal ...

    Read More
  • Newer
    Older
    Sign up and start building
    Not ready yet? Talk to an expert.