Calf

Introduction

The Calf is yet another Micro-framework for PHP. This project was originally named minion-router and started as a self-project for fun. The Calf is just a dispatcher for HTTP Request that throws specified response. Basically ideal for creating APIs.

Calf is so easy!!!
                
<?php

require("vendor/autoload.php");

$app = new \Calf\App();

$home = new \Calf\HTTP\Route('/', function($req, $res) {
        return $res->write('Hello World!');
    });

$app->add($home);

$app->run();
                
            

Installation

Calf can be easily installed using `composer`
What's composer? Composer is a dependency manager for PHP. Click here for more information about composer.
                
composer require jabernardo/calf