Cool PHP Libraries

Hi Friends,

Here I share some useful information related to php library for developers. Amoung the programmers the PHP is very popular language. It is a powerful web development scripting languages.
It helps to develope dynamic website and static web site too. All web developers used this language to develope dynamic website. In the web market.

There are so many web development languages are available. We need to consider all the parameters like performance, security,functionality etc while selecting the best web development language.
PHP is the powerful web development language and also they support good PHP libraries.

The PHP libraries helps to web developers to reduce the coding time. Following some PHP libraries which are useful to web developers.

  • Whoop
  • Underscore
  • Alice
  • Buzz

  • PHP-PasswordLib
  • Ratchet
  • Parody
  • Upload
  • Snappy
  • PHPgeo
  • PChart

  • Dispatch
  • Services_JSON
  • phpAES
  • Hoa
  • Mink
  • Faker

1.Whoops :Whoops helps to deal with error and exception in very simple way. It’s a small library.

2.Underscore : The ‘underscore’ helps to enhance the underscore functionality. Basically underscore.php is a PHP port of the popular Underscore.js library. It requires PHP 5.3 or greater version.



__::each(array(1, 2, 3), function($num) { echo $num . ','; }); // 1,2,3,

$multiplier = 2;
__::each(array(1, 2, 3), function($num, $index) use ($multiplier) {
  echo $index . '=' . ($num * $multiplier) . ',';
// prints: 0=2,1=4,2=6,

__::reduce(array(1, 2, 3), function($memo, $num) { return $memo + $num; }, 0); // 6

__::find(array(1, 2, 3, 4), function($num) { return $num % 2 === 0; }); // 2

__::filter(array(1, 2, 3, 4), function($num) { return $num % 2 === 0; }); // array(2, 4)

3.Alice:The alice provides you a few essential tools to make it very easy to generate complex data. It’svery easily understood,readable and easy to edit as well. This also provides you to create a dummy data for testing your project or developing purpose.


4.Buzz:The ‘buzz’helps to handling HTTP requests. Buzz is a lightweight PHP 5.3 library.



$request = new Buzz\Message\Request('HEAD', '/', '');
$response = new Buzz\Message\Response();

$client = new Buzz\Client\FileGetContents();
$client->send($request, $response);

echo $request;
echo $response;

5.PHP-PasswordLib : PHP-PasswordLib library helps to fulfil all the essential cryptographic needs. Alnd also save you from Hacker.

6.Ratchet: This library provides tools to create real time, bi-directional applications between clients and servers over Web Sockets.


7.Parody: Its very simple li in PHP. It helps to create copy of classes and objects as well as provide working results for method calls, getting properties, instantiating objects, etc. Also ‘parody’provides you to create sequential method chaining to make defining class structures and operation extremely quick.

8.Upload: This library helps to simplifies file validation and uploading.


9.Snappy: It’s a PHP5 library allowing thumbnail, snapshot or PDF generation from a URL or a html page.


10.PHPgeo: This helps to provides abstractions to geographical coordinates and allows you to calculate geographical distances between coordinates with high precision. This is useful library to map the appropriate geographical distance of place.


11.PChart:PChart helps to generate text data in the form of a visual chart. It’s a impressivePHP library. The text data can de displayedin the form of visual chart like bar charts, pie charts etc. By using SQL queries it helps to creating amazing charts and graphs in PHP script.

12.PHP CAPTCHA:The PHP captcha provides automated audio and visual captchas.

13.DispatchDispatch is a simple PHP library. The main disadvantage of dispatch is that: it doesnot provide full MVC setup.

		include 'dispatch.php';// include the library
		// define your routes
			get('/greet', function () {
		// render a view
		// post handler
			post('/greet', function () {
			$name = from($_POST, 'name');
		// render a view while passing some locals
			render('greet-show', array('name' => $name));
		// serve your site

14.Services_JSON:It helps to allow transmission og=f human readable data

15.phpAES:phpAES is a class implementation PHP code that supports encryption cipher of 128, 192, and 256 bit AES.

.16.Hoa:The Hoa is a modular, extensible and structured set of PHP libraries.


17.Mink:The mink is another PHP library. It helps you test your web apps interacts with browser properly

18.Faker:Fake is another PHP library, it provides fake data for you.

		// require the Faker autoloader
		require_once '/path/to/Faker/src/autoload.php';

		// use the factory to create a Faker\Generator instance
		$faker = Faker\Factory::create();

		// generate data by accessing properties
		echo $faker->name; // 'Lucy Cechtelar';

		echo $faker->address;
		// "426 Jordy Lodge
		// Cartwrightshire, SC 88120-6700"

		echo $faker->text;
		// Sint velit eveniet. Rerum atque repellat voluptatem quia ...

If anyone has doubts on this topic then please do let me know by leaving comments or send me an email.

Leave a Reply

Your email address will not be published. Required fields are marked *