alanedwardes / carbo
This package is abandoned and no longer maintained.
No replacement package was suggested.
A fast, light and succinct PHP web framework. I use this for my own projects.
dev-master
2014-07-18 20:56 UTC
Requires
- php: >=5.4.0
- cbschuld/browser.php: dev-master
- christian-riesen/otp: 1.*
- doctrine/dbal: 2.4.*
- twig/twig: 1.*
This package is not auto-updated.
Last update: 2020-06-12 17:46:23 UTC
README
A fast, light and succinct PHP web framework.
Features:
- Routing, caching, authentication and session management capabilities
- Zero-configuration admin panel that traverses schemas and automatically discovers relationships
- Built-in templating using the Twig library
Basic Usage
<?php # Without composer: require_once 'carbo/loader.php'; require_once 'vendor/autoload.php'; # Create a router $router = new Carbo\Routing\Router; Carbo\Mapping\Map::create($router, [ # Map / to a simple text view ['/', 'Carbo\Views\TextView', 'Hello, world!'], # Map 404 to another simple text view [Carbo\Http\Code::NotFound, 'Carbo\Views\TextView', 'Not found.'] ]); # Despatch echo $router->despatch();
Composer
{ "require": { "alanedwardes/carbo": "dev-master" } }