nigelgreenway / colonel
A component based framework on StackPHP with PHP League components
Installs: 149
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/nigelgreenway/colonel
Requires
- php: >=5.5.0
- league/container: ^1.3.2
- league/route: ^1.1.0
- symfony/http-kernel: ^2.6
Requires (Dev)
- filp/whoops: ^1.1
- phpunit/phpunit: ^4.6.6
- twig/twig: ^1.18.1
This package is auto-updated.
Last update: 2025-09-27 18:22:38 UTC
README
To use, simply add:
<?php require __DIR__ . '/../vendor/autoload.php'; $app = (new Colonel\HttpKernel( require_once __DIR__ . '/../Application/Configuration.php' ))->run();
An example configuration file:
<?php return [ 'debug' => false, 'routes' => [ 'DemoBundle' => [ 'hello_world' => [ 'pattern' => '/your/pattern/{var}', 'controller' => 'Path\\To\\Class::method', 'method' => 'GET', ], ], ], 'services' => [ 'di' => [ 'Path\\To\\Some\\Dependency' => [ 'class' => 'Path\\To\\Some\\Dependency', 'arguments' => [ 'Path\\To\\Some\\Other\\Dependency', ], ], 'Path\\To\\Some\\Other\\Dependency' => [ 'class' => 'Path\\To\\Some\\Other\\Dependency', ], ], ], ];
This will be fleshed more out soon...