Build the future of communications.
Start Building for Free

PHP posts

  • By Ijeoma Nelson
    How to Create a News Feed with Goutte and Twilio's Message Scheduling API How to Create a News Feed with Goutte and Twilio's Message Scheduling API

    I've long been a fan of newsreader applications. Mostly for the convenience of being able to keep up with the stories, writers, and publications that interest me. That said, I'm also aware of the negative impact of such apps on my daily productivity.

    The frequent interruption of my concentration by clickbait headlines is proving to be quite frustrating — especially as I fall for it every time. Yet, I'm somewhat hesitant to unsubscribe for the sake of FOMO (Fear of Missing Out).

    For this millennial, the struggle is real. So, if you're like me and you share the dilemma of staying socially current while avoiding the trap of sensational headlines, you will find this tutorial incredibly helpful.

    What will you build?

    You will learn how to create a personalised news feed application that will text the day's headlines at the end of each day. The project will be powered …

    Read More
  • By Matthew Setter
    Make Phone Calls Using PHP and Twilio Programmable Voice Make Phone Calls Using PHP and Twilio Programmable Voice

    There are so many things that you can do in PHP, including creating websites, building command-line tools, generating images, encrypting and decrypting data, and scraping websites.

    But did you know that PHP can also make phone calls? Okay, not on its own it can't, but with the help of Twilio Programmable Voice, it can! In this tutorial, you're going to learn how.


    To follow along with this tutorial you will need the following:

    Set up your environment

    The first thing you need to do is to create a project directory and change into it. To do that, run the following commands.

    mkdir twilio-voice-call
    cd twilio-voice-call

    Next, create a new file named .env …

    Read More
  • By Prosper Ugbovo
    Send One Time Passwords Over Voice Calls in PHP Using Twilio Verify Send One Time Passwords Over Voice Calls in PHP Using Twilio Verify.

    In recent years, user authentication in web applications has become a serious concern. For example, one-time passwords (OTP) are utilized to verify a user's identity; the most frequent method for sending OTPs is via SMS to the user's registered cellphone number.

    In this tutorial you will learn how to send one-time passwords to users over voice calls in PHP using Twilio's Verify Api. In doing so, you will create an OTP system that can be used as an additional security layer for specific operations in your application.


    To follow this tutorial, you need the following:

    Application Process

    Here's …

    Read More
  • By Oluyemi Olususi
    Develop a GraphQL-Powered API With Symfony Develop a GraphQL-Powered API With Symfony

    For years, REST (Representational State Transfer) has been the de facto standard when designing APIs. That's quite understandable, as it's a very straight-forward structure: After sending a request to an endpoint, a JSON (or XML) response is returned to the client.

    However, as applications became more complicated a recurrent theme started to emerge - multiple REST calls are required to populate a view. Enter GraphQL. With GraphQL, the sender of the request determines the structure of the response, thus providing more flexibility and efficiency to the frontend.

    In this article, I will show you how to develop a GraphQL-powered API for an online book store with Symfony.


    To get the most out of this tutorial, you need the following:

    Getting Started

    Create a new Symfony application, and …

    Read More
  • By Oluyemi Olususi
    SymfonyとReactでシングルページアプリケーションを構築する SymfonyとReactでシングルページアプリケーションを構築する

    この記事はOluyemi Olususiこちらで公開した記事(英語)を日本語化したものです。







    また、開発するマシンにはNode.jsYarnパッケージマネージャがインストールされていることが必要となります。最後に、依存関係を管理するために、Composerをインストールする必 …

    Read More
  • By Chimezie Enyinnaya
    Sende WhatsApp-Benachrichtigungen mit Laravel Laravel Notifications

    Laravel erleichtert das Senden von Benachrichtigungen in Ihrer PHP-Anwendung. Es bietet vorkonfigurierte Unterstützung für Kanäle wie E-Mail, SMS, Slack und Datenbank. Doch was, wenn wir Benachrichtigungen an andere Kanäle als diese senden wollen, z. B. WhatsApp? In diesem Tutorial zeige ich, wie Sie mit der Twilio-API WhatsApp-Benachrichtigungen in Ihre Laravel-App implementieren können.

    Tools zur Durchführung dieses Tutorials

    Sie benötigen folgende Tools, um dieses Tutorial zu absolvieren:

    Was wir bauen werden

    Wir verwenden für dieses Tutorial das Konzept eines Bestellsystems. Zur Vereinfachung entwickeln wir kein vollwertiges Bestellsystem, sondern lediglich den Teil, der Benachrichtigungen sendet.

    Erstellen einer neuen Laravel-Anwendung

    Wir erstellen zunächst eine neue Laravel-Anwendung. Dazu benötigen wir das oben erwähnte Laravel-Installationsprogramm. Führen Sie den folgenden Befehl in Ihrer Konsole aus:

    $ laravel new laravel-whatsapp-notification
    $ cd laravel-whatsapp-notification

    Nachdem die Anwendung erstellt wurde, müssen …

    Read More
  • By Matthew Setter
    PHPで環境変数を使用する方法 PHPで環境変数を使用する方法

    この記事はMatthew Setterこちらで公開した記事(英語)を日本語化したものです。

    環境変数は、PHPアプリケーションを構築する上で非常に便利なツールです。環境変数を使えば、アプリケーションの設定をコード外に保管できます。コード外に保管することで、認証情報の漏洩を防いだり、 アプリケーションを効率的にメンテナンスしたり、複数の環境にわたってアプリケーションを使用することが容易になります。





    例えば、$_SERVERにはリクエストヘッダー、パス、スクリプトの場所が含まれ、 $_SESSIONにはセッション変数が含まれます。また、$_POSTにはHTTP POSTメソッドで呼ばれたときに現在のスクリプトに渡される変数が含まれます。


    Read More
  • By Brian Iyoha
    LaravelとTwilioでSMSポータルを作る方法 LaravelとTwilioでSMSポータルを作る方法

    この記事はBrian Iyohaこちらで公開した記事(英語)を日本語化したものです。



    このチュートリアルでは、TwilioのProgrammable SMSとLaravelを使用してSMS通知ポータル(管理画面)を作成する方法をご紹介します。







    • Laravelの基礎知識。
    • ローカルマシンにインストールされたLaravel
    • グローバルにインストールされたComposer
    • ローカルマシンに設定されたMySQL
    • Twilioのアカウント。Twilioホームページをブラウザで開き、[今すぐ無料サインアップ]ボタンをクリックするか、Twilioアカウントの作成リンクからサインアップします。このリンクを使用するとアカウントのアップグレード時に$10( …
    Read More
  • By Matthew Setter
    Improve PHP Web App Performance Using Memcached Improve PHP Web App Performance Using Memcached

    In the first part of this series, I stepped through how to create a Markdown-powered blog in PHP using the Slim Framework. In this, the second part in the series, you're going to learn how to use Memcached with PHP to improve the application's performance.

    Let's begin!


    You need the following to follow this tutorial:

    Why use caching?

    While the initial version works perfectly well, its performance would peak reasonably quickly, because — on every request — the blog data is aggregated from a collection of Markdown files with YAML frontmatter in the application's filesystem, parsing out the article data before the blog data can …

    Read More
  • By Matthew Setter
    Build Your Own Weather Station With PHP, Python and a Raspberry Pi Build your own weather station with PHP, Python and a Raspberry Pi

    Raspberry Pi, Arduino, BeagleBone, and similar technologies have had a revolutionary impact on so many people around the world.

    Because they provide the building blocks of computing for a very low price, anyone, from a school student to a retiree, with a little bit of time and effort, can build a device that perfectly scratches whatever itch they have. They no longer need to wait for a commercial organisation to build it.

    One such itch (at least one that I have) is to measure the current temperature and humidity throughout the rooms in my home. Sure, weather app's can tell you the current temperature and humidity, however, they can only do it for a wide geographical area.

    So, in this tutorial, you're going to learn how to create a small weather station with a Raspberry Pi, some PHP and Python code, and a temperature and humidity sensor — for …

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