Level up your Twilio API skills in TwilioQuest, an educational game for Mac, Windows, and Linux. Download Now
Build the future of communications.
Start building for free
  • By Ugendu Ositadinma
    Retrieving Account-Specific Pricing for Twilio SMS in Your PHP App Retrieving Account-Specific Pricing for Twilio SMS in Your PHP App

    A major factor to consider when building web applications is evaluating the cost of integrating third-party services. If you’re using Twilio, this tutorial will serve as a guide to finding the cost of making SMS/Messaging requests to the Twilio Programmable SMS APIs.

    Installation Requirements

    To get started with this tutorial, you will need to have the following modules/packages installed on your development machine:

    Here is a guide that can be followed to install Composer globally:

    Creating the PHP Project

    First, create a folder named smsPricing on your local machine where the code will be housed.

    In the folder that was created, create a file named index.php which will contain all the code for this tutorial.

    Now, let’s go ahead and install Twilio's PHP SDK in order to call the necessary APIs required to share the functions. To accomplish …

    Read More
  • By Ugendu Ositadinma
    Create a Twilio Voice Pricing Calculator using PHP Create a Twilio Voice Pricing Calculator using PHP

    A major concern when building web solutions with third-party services is estimating the costs of API requests. This tutorial will guide you through the process of finding the costs of voice calls for Twilio Programmable Voice, depending on the origin and destination.

    Installation Requirements

    Getting started with this tutorial, it is expected that you have the following modules/packages installed on your development machine:

    Here is a guide that can be followed to  install Composer globally:

    Creating the PHP project

    Let’s create a folder named pricing on your local machine where the code will be housed.

    Inside this folder, create an index.php file which will contain all the code for this tutorial.

    Next, proceed to install Twilio's PHP SDK to call the necessary APIs needed for the functions to be shared. To achieve this, use Composer to install …

    Read More
  • By Ugendu Ositadinma
    Create a Contact Form in PHP with Laravel and Twilio SendGrid Create a Contact Form in PHP with Laravel and Twilio SendGrid.png

    Rolling out your own email solution from scratch can prove to be challenging due to issues such as avoiding being flagged as SPAM or scaling to many users. Luckily, APIs such as Twilio SendGrid exist to fix deliverability and scale when implementing email-based solutions.

    If you are interested in sending out newsletters to users, email notifications for admin related actions, or also keeping track of successful and failed email triggers keep reading. Throughout this guide, we will be focusing on dispatching emails to various end-users. To achieve this, we will be using Twilio SendGrid and Laravel to dispatch emails to various recipients. Once completed, you will have built an email form that can be incorporated into your Laravel application.

    Screen Shot 2020-03-03 at 11.36.49 AM.png

     

    Installing dependencies and requirements

    To complete this tutorial, we need to install all of the dependencies required to send emails using SendGrid and Laravel.

    You should have the following modules/packages installed: …

    Read More
  • By Ugendu Ositadinma
    How to Initiate a Voice Call from Laravel PHP with Twilio Programmable Voice Initiate a Voice Call from Laravel PHP with Twilio Programmable Voice.png

    In this tutorial, we will be creating a Laravel application that will be used to make outbound voice calls. We will be making use of Twilio's Programmable Voice feature to learn how to initiate voice calls.

    Technical Requirements

    Completing this tutorial will require the following dependencies and a basic understanding of them.

    1. PHP (Version 7.1 or higher).
    2. Composer.
    3. Laravel.
    4. A Twilio Account.

    Before we proceed with this tutorial, it is expected that you have a voice-enabled Twilio number. In case you do not have one, please proceed to purchase one here. This number will be used for the "from" number later in this tutorial.

    Setting Up Your Development Environment

    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-voice
    

    This will create a Laravel project for us in the twilio-voice directory.

    Our …

    Read More
  • By Ugendu Ositadinma
    Detect Cellphones and Verify Phone Numbers in Laravel PHP using Authy Detect Cellphones and Verify Phone Numbers in Laravel PHP using Authy.png

    Introduction

    There may be times in building your app that you will need to send an SMS to the phone number of a user. Wouldn't it be awesome if you could confirm that the number supplied is actually a cellphone? Or maybe you want to only send SMS to verified users. With Twilio's Authy API, these use cases are easy to implement. This tutorial is aimed at helping developers to build a phone number validator to verify users phone numbers in any PHP application and check if a number is a cellphone or landline before sending an SMS. 

    Technical Requirements

    For this tutorial, it is expected that you have basic knowledge of the following:

    • Composer
    • Are familiar with Laravel
    • Understand PHP 5+
    • Have a Twilio account

    NOTE: Don’t forget to craft a Laravel project for this purpose. Here’s a link to a guide on the installation process for installing …

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