background preloader

Composer

Composer

PEAR - PHP Extension and Application Repository 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. 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. Assetic is am asset management framework for PHP. 5. 6. 7. 8. 9.

PHP: Hypertext Preprocessor PHP Best Practices: a short, practical guide for common and confusing PHP tasks Doctrine-Project

Related: