Skip to content

bihanphp/bihan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

I recommend you to read the very good article about fast-route and fast request routing using regular expressions.

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

Releases

No releases published

Packages

No packages published

Languages