2017 © Pedro Peláez
 

library carbo

A fast, light and succinct PHP web framework. I use this for my own projects.

image

alanedwardes/carbo

A fast, light and succinct PHP web framework. I use this for my own projects.

  • Friday, July 18, 2014
  • by AlanEdwardes
  • Repository
  • 1 Watchers
  • 0 Stars
  • 21 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 2 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Carbo

A fast, light and succinct PHP web framework., (*1)

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, (*2)

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"
    }
}

The Versions

18/07 2014

dev-master

9999999-dev https://github.com/alanedwardes/carbo

A fast, light and succinct PHP web framework. I use this for my own projects.

  Sources   Download

MIT

The Requires