10 Useful PHP Libraries and Classes

1.  Unirest


UniRest is a collection of light weight HTTP Request Client Libraries for many languages including Node, Ruby, PHP, Java, Python, Objective C, .Net and Windows 8.  It has support for GET, POST, PUT, UPDATE and DELETE operations.


2. JqmPhp


jqmPhp is a open source package of PHP classes that allow the creation of HTML files for use with jQuery Mobile Framework. All classes in the jqmPhp package can be converted to string and printed with an echo function.


3.  PhpFastCache


phpFastCache is an open source high performing PHP caching library which makes your website runs smooth on any shared hosting. it has support for multiple caching methods such as apc, memcache, memcached, wincache, files, pdo and mpdo. It is the distributed object caching system which is intended for use in speeding up dynamic web applications by alleviating database load.


4.  Gantt Charts

Gantt Charts

Gantti is an open source PHP class for generating Gantt charts for your projects. It generates valid HTML and it is very easy to customize with with SASS stylesheet. Gantti works in all major browsers including IE7, IE8 and IE9 an no javascript is required to use it.


5.  Requests


Requests is a humble HTTP request library written in PHP. It simplifies how you interact with other sites and takes away all your worries. Its features includes international Domains and URLs, Browser-style SSL Verification, Basic/Digest Authentication, Automatic Decompression and Connection Timeouts.


6.  Php Error

PHP Error

PHP Error is an open source PHP library for error reporting. It helps in finding the PHP errors in your code and when any error strike in the page, the page gets replaced with a full stack trace highlighting the syntax.


7.  PHP Thumb

PHP Thumb

phpThumb is a PHP library to create thumbnails from images (JPEG, PNG, GIF, BMP, etc) on the fly. It accepts any source types for images and all popular image formats. Supported output image formats include JPEG, PNG, GIF, BMP, ICO.


8.  Opauth



Opauth is the multi-provider authentication framework for PHP which provides a standardized method for PHP applications to interface with authentication providers. Opauth works well with PHP applications & frameworks and it is currently supported on vanilla (plain) PHP applications, CakePHP, CodeIgniter, CodeIgniter, FuelPHP, Laravel, PrestaShop, Silex, Yii Framework, Zend Framework 2, Nette etc.


9.  PHP Image Cache

PHP Image Cache

Image Cache is a small PHP class that accepts a .png, .jpg, or .gif image and then compresses, moves, and caches the image in the user’s browser. It helps you to decrease the load time of the page by compressing and caching images.


10. SwiftMailer


SwiftMailer is a free Feature-rich PHP Mailer that integrates into any web app written in PHP 5, offering a flexible and elegant object-oriented approach to sending emails with a multitude of features.