Skip to content
Stefano Azzolini edited this page Aug 21, 2014 · 36 revisions

Core

Core

is Caffeina internal PHP SDK for rapid application development.


Installation

Add package to your composer.json:

{
  "require": {
    "caffeina-core/core": "dev-master"
  }
}

Run composer:

$ php composer.phar install -o

Now the entire toolchain is already available upon the vendor autoloader inclusion.

<?php
// Load vendors
include 'vendor/autoload.php';

Route::on('/',function(){
	echo "Hello from Core!";
});

// Dispatch route
Route::dispatch();

// Send response to the browser
Response::send();
Clone this wiki locally