Google Analytics Realtime Traffic Viewer using Analytics API

In this tutorial, we are going to develop a complete Google Analytics Realtime Traffic Tracking tool using Analytics API. Please follow these steps to develop your own Google Analytics Dashboard for Realtime... Read more »

Get random jokes with PHP using Joke API

In this tutorial, we are going to get random jokes with Joke API using PHP. Source Code : <style type="text/css"> body{ background-color: aliceblue; } .box-container{ display: flex; justify-content: center; align-items: center; height:... Read more »

Using Authentication Header with file_get_contents in PHP

In PHP, file_get_contents() function is commonly used to get content of a file or a url and it works like a charm in normal scenario. If in case, the URL or file... Read more »

Simple HTML parser using PHP

A simple PHP HTML DOM parser written in PHP5+, supports invalid HTML, and provides a very easy way to find, extract and modify the HTML elements of the DOM. jQuery like syntax... Read more »

Random Quotes Generator using PHP API

The following source code demonstrates a simple PHP API to get random quote. We simply need to make a GET request to the API endpoint : https://api.quotable.io/random and we will get a... Read more »

QR Code Reader using PHP Library

In this article, we are going through a PHP library to detect and decode QR-codes. Installing QR Code Reader/Decoder PHP Library The recommended method of installing this library is via Composer. We... Read more »

Convert Number into words using PHP

In this article, we are going to learn to convert number into words using PHP. We have a PHP function which simply returns the word for the corresponding numeric value passed to... Read more »

Prevent Too Many Request From a Client using PHP

In certain scenarios, we might need to make sure that a client is not allowed to request a page for multiple number of times within a period of time. The following sample... Read more »

Extract all Links from a Webpage using PHP

The following is a simple PHP script to extract all links from a webpage : <h1 style="text-align:center;">Extract All Links from a Webpage using PHP</h1> <hr> <?php function getAllLinks($url){ $urlData = file_get_contents($url); $dom... Read more »

Generate User Avatar with Name using PHP

In computing, an avatar (also known as a profile picture or userpic) is a graphical representation of a user or the user’s character or persona. It may take either a two-dimensional form... Read more »