fijma/cobber

A miniscule web framework for PHP, inspired by Rack.

Maintainers

Details

github.com/fijma/cobber

Source

Issues

Installs: 22

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/fijma/cobber

v1.0.2 2015-12-27 09:14 UTC

This package is not auto-updated.

Last update: 2025-10-26 00:09:15 UTC


README

Cobber is a miniscule PHP web framework, inspired by rack.

$app = new Cobber(function($env) { return [200, [], ["G'day mate!"]]; });
$app->run();

Cobber accepts your app as a classname, instance, or closure. Just pass it in on instantiation.

Cobber supports middlewares. They can be loaded on instantiation:

$middlewares = [['MyMiddleware', ['some', 'optional', 'options']]];
$app = new Cobber($myapp, $middlewares);
$app->run();

or added via the add() method:

$app = new Cobber($myapp);
$app->add('MyMiddleware', ['some', 'optional', 'options']);
$app->run();