Understanding Interface in Object Oriented PHP (Published in tisuchi.com)

You may heard about Interface in Object Oriented PHP Programming. But have you ever asked yourself that, what exactly interface? How it work? Or what is the functionality? As a php developer, why you have to bother about it?


Well, if you have that kinds of questions in you mind, you may be lucky that this tutorial is for you. This writing is totally dedicated to understand Interface in OO PHP. What exactly interface do? Lets see…


What is Interface?

An interface is a contract between unrelated objects to perform a common function. Literally it guarantor for users to ensure that it is capable to perform all the functions of object that is defined specification. For example, cricket bat and football are totally different things in terms of shape and size, but in object representing those items in a sporting goods store inventory must be capable of interacting with that system.

It is very important to understand that, by declaring an interface and then implementing it in objects, can be hand completely different classed to common functions.


To know more, visit http://tisuchi.com/understanding-interface-object-oriented-php/



How to use PHPExcel library (Published in tisuchi.com)

There is no doubt that, PHP Excel Library is a super doper library for mastering on Excel document by PHP language. Personally I prefer to use PHP excel library to manipulate data with excel. Let’s take a look how can we use that sublime library in PHP.

Download PHP Excel Library

Go to following links for downloading. You may choose any source to download.

Although they have different download options, but I prefer to download from official page. After downloading successfully, extract downloaded zip folder. Now go inside extracted folder and sure enough you will get Classes folder. Now copy everything from classes folder and past in yourdesire folder (normally it is in your localhost). For example, I am using xampp in C drive and created a new folder called php in htdocs. So my url should be c://xampp/htdocs/php/. It can be different in your pc. Now time to browse your your file (PHPExcel.php). Based on my directory, my url should be like follows- http://localhost/php/PHPExcel.php. And sure enough that you will not get anything in browser.



To read more visit 

How to use PHPExcel library