relax / relax
A PHP micro-framework based on the CommonJS Module pattern and Symfony2 Components
Requires
- php: >=5.3.3
- commonjs/commonjs: dev-master
- symfony/http-foundation: 2.1.*
- symfony/http-kernel: 2.1.*
- symfony/routing: 2.1.*
- symfony/yaml: 2.1.*
Requires (Dev)
- monolog/monolog: >=1.0.0,<1.2-dev
- swiftmailer/swiftmailer: 4.2.*
- symfony/twig-bridge: 2.1.*
- twig/twig: dev-master
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 ! ;-)
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.