Skip to content

Installation

Stefano Azzolini edited this page Feb 25, 2016 · 2 revisions

Add package to your composer.json:

{
  "require": {
    "caffeina-core/core": "*"
  }
}

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