Custom Facade in Laravel 5.2?

In Laravel world, a facade is a class that provides access to an object from the container. Laravel “facades” serve as “static proxies” to underlying classes in the service container, providing […]

How to configure/load database in Slim Framework 3

Slim is a full-featured,open-source PHP micro framework that helps you quickly write simple yet powerful web applications and APIs. It comes with a sophisticated URL dispatcher and middleware architecture that makes it […]

How to determine the version of bash

In this post I would like to show you very trivial example, which will help you to find the version of the bash that your are running. The easiest way to determine the version of bash that you are using is to print the […]

How to generate excel from array using PHPExcel

This tutorial will describe usage of PHPExcel library to generate an Excel file from PHP array. Usage of PHPExcel library is very simple and easy. Just follow the below steps. 1. First thing first – Download PHPExcel […]

How to Convert a PDF to JPEG using PHP

Hey, Today I would like to show you how we can convert PDF to JPEG using imagick extension. Imagick is a native php extension to create and modify images using the ImageMagick API, which is mostly built-in in PHP installation […]

How to install Laravel 5

In this post I am going to share laravel installation steps. We Can install laravel by using composer and laravel installer. Laravel Installer is a new features which is introduced in Laravel 4.1, which can create a project […]

Check if an IP address is private with PHP?

This snippet will detect a private IP address using PHP’s built in filter library and It will return false if the IP address is private. FILTER_FLAG_IPV4 : Allows the IP address to be in IPv4 format. FILTER_FLAG_NO_PRIV_RANGE […]

Create and download CSV files using PHP

If you need to download a CSV file on the fly without writing to external file, than you need to open php://output stream and use fputcsv() on it. Built in fputcsv() will generate CSV lines from given array, so you will […]

Placeholder styling with CSS

By default, placeholder text in inputs has a light gray color(if the browsers support) and which appears in an input field until the user puts focus on the field. Placeholder text is like a hint or prompt to users as the […]

Genuine ways to stay motivated

Success and achievement has different meanings for different people. In the quest for money, good jobs, top positions and materialistic possessions, we sometimes forget where the journey began. If money is a means to an […]

How to check / uncheck all check boxes using jQuery?

You may have noticed select/deselect all functionality on websites like, or even in the wordpress admin dashboard basically which allows you to select all emails or posts on the page with single click. […]

How to use PHPExcel with CodeIgniter?

PHPExcel is a pure PHP library for reading and writing spreadsheet files and CodeIgniter is one of the well known PHP MVC framework. Here i am gonna show you how to Integrate PHPEXcel library in CodeIgniter. Setp1 : Download […]

How to create your own controller plugin in ZF2?

Our step-by-step guide explains how you can create your own controller plugin in zf2.Fortunately creating controller plugin is very easy task. Create a directory called plugin in your module controller directory, then […]

How to Comment Your PHP Code?

PHP allows three different methods of formatting comments. Comments are generally known as single line and multiple line Comments.A comment in PHP code is a line that is not read as part of the program. Its only purpose […]