24 Cool PHP Libraries You Should Know About. Martin Angelov It is an exciting time to be a PHP developer. There are lots of useful libraries released every day, and with the help of Composer and Github, they are easy to discover and use. Here are 24 of the coolest that I’ve come across. Your favorite is not on the list? Share it in the comment section! 1. Dispatch is a minimal PHP framework. Include 'dispatch.php'; get('/greet', function () { render('greet-form'); }); post('/greet', function () { $name = from($_POST, 'name'); render('greet-show', array('name' => $name)); }); dispatch(); You can match specific types of HTTP requests and paths, render views and more. 2. Klein is another light weight routing library for PHP 5.3+. Respond('/[:name]', function ($request) { echo 'Hello ' .
You can also subscribe to specific HTTP methods and use regexes as paths: This is great for small projects, but you have to be disciplined when using a library like this for larger apps, as your code can become unmaintainable very fast. 3. Require '.. 4. 30+ PHP Best Practices for Beginners. Composer. Doctrine-Project. PEAR - PHP Extension and Application Repository. PHP Best Practices: a short, practical guide for common and confusing PHP tasks. PHP: Hypertext Preprocessor.