Skip to content
This repository has been archived by the owner on May 3, 2020. It is now read-only.

alanedwardes/carbo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Carbo

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published