Note : This is a guide for PS 1.6.x because 1.7 provide a composer.json
The PHP World is full of talentued developers. They create very usefull and powerfull libraries. In PrestaShop, developers often have to reimplement them. Unless use composer !
First, you have to install composer to your system. I don't teach you how to do this, read the doc.