2017 © Pedro Peláez
 

library bihan

A PHP micro-framework based on the Symfony Components

image

bihan/bihan

A PHP micro-framework based on the Symfony Components

  • Sunday, December 20, 2015
  • by tubbix
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

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

The Versions

20/12 2015

dev-master

9999999-dev http://bihanphp.github.io/bihan

A PHP micro-framework based on the Symfony Components

  Sources   Download

MIT

The Requires

 

The Development Requires

by Matthieu Le Goff

microframework