Pipes / Micro-framework for PHP
pipes is a micro-framework for PHP 5.3, inspired by Sinatra. I wrote it a while back, after my previous post about such frameworks. It uses namespaces and anonymous functions, to give you code that looks like this:
require 'pipes.php';
pipes\get('/hello', function() {
return "Hello, world!";
});
pipes\get('/hello/:name', function($params) {
return "Hello, {$params->name}!";
});
pipes\run();
Like pecs, it’s really small (one file, about 350 lines of code), readable, fully tested, and easy to integrate with other projects or frameworks.
Check it out on GitHub, and let me know if you find it useful!