Do you ever wondering how to do certain things in PHP like generating graphs, generating pdf or parse RSS efficiently and easily. I found myself rewriting these codes every once in a while and was lucky enough to find these wonderful libraries/framework that are completely free and easy to use.

There are more, but I will only listed my handpicked best one out of these categories

RSS Parser

Normally I would use Jquery to do this stuff, but meh. When it comes to PHP, it’s all the way PHP

SimplePie: Very fast, easy to use, PHP driven RSS Parser

Demo | Documentation | Screencast (Yay!!)

I once used MagpieRSS for performance, but SimplePie offers a greater deal of functionality and when web servers are getting stronger days by days, the performance difference is not that big. One thing I love about this SimplePie is that it is actively being developed and actively updated.

Also, SimplePie got an integration with Codeigniter, my favourite PHP framework

Graph Generator

pChart: an Object Oriented framework that is capable of generating charts, graphs and best of all, it’s free. Data is grabbed from SQL Queries or CSV Files or just manually put them in.

Screenshots | Demo | Documentation (Very detailed!)

However, this library requires GD Library to be installed onto your web server and have PHP compiled with it. If you don’t have GD installed, better check for my second alternative: Libchart, a little bit old but suffice.

PDF Generator

FPDF: This little baby works splendid. It can stand alone or with zlib for compression and GD for GIF support.

Tutorial | Documentation

It can be easily integrated with Codeigniter

Excel Generator

php-excel: very easy and fast way to generate excel spreadsheet using PHP on the fly

The approach is to convert a 2 dimensional array in PHP to a spreadsheet in Excel. However, because of it’s easy to use and fast performance, it does not have quite a few of features like cell styling, functions creating, sort…. If you need those (I don’t!), your choice is PHPExcel

Payment System

PHP-OpenID: for paypal, authorize.net and 2checkout (2CO). Yeah, the 3 most popular ones, who needs the lesser unpopular ones?

Checkout the links, it’s very detailed with code examples and all other stuff that you need to know. Scrap those you don’t need to know :)

This guy, Emran, is my hero by delivering this wonderful library to us