relax/relax

A PHP micro-framework based on the CommonJS Module pattern and Symfony2 Components

dev-master / 1.0.x-dev 2012-10-10 19:28 UTC

This package is not auto-updated.

Last update: 2024-04-27 11:28:45 UTC


README

Yet another PHP 5.3+ microframework... Yeah, but this one is not a nth Sinatra clone ! ;-)

build status

It is based on Symfony HttpFoundation & Routing Components and CommonJS For PHP Module pattern, and aims to be as lightweight as possible.

It is designed to be used with a simple YAML config file, which contains all the application routes and configuration parameters. Create a new instance of Relax\Application, give it the YAML file path, and... relax, it's ready!

It is bundled with several common services Providers:

  • Symfony Session Provider
  • Symfony URL Generator Provider
  • Twig Provider
  • Monolog Provider

Althought it doesn't use Symfony's HttpKernel, the Relax\Application class implements the Symfony\Component\HttpKernel\HttpKernelInterface, and can be used with the pure PHP Symfony Reverse Proxy.

Documentation will come soon. You can look at Unit Tests for more information.