Bihan
Bihan means "small" in Breton language.
It started as a personnal project to improve my knowledge on building framework using Symfony.
So I decided to use main HTTP Symfony components, Pimple dependencies container and
fast-route router to implement a fast and lightweight framework.
Bihan is very inspired from Silex and is perfect to implement small rest API., (*1)
I recommend you to read the very good article about fast-route and
fast request routing using regular expressions., (*2)
Installation
$ composer require bihan/bihan
Usage
<?php
require_once __DIR__.'/../vendor/autoload.php';
use Symfony\Component\HttpFoundation\JsonResponse;
$app = new Bihan\Application();
$app->match('GET', '/', function () {
return new JsonResponse(['code' => 'OK']);
});
$app->run();
Tests
$ composer install
$ phpunit