sergiors / lullaby
Configuration for Silex like Symfony
3.0.0
2016-12-01 18:30 UTC
Requires
- php: >=5.5
- silex/silex: ^2
- symfony/config: ^3.2
- symfony/dependency-injection: ^3.2
Requires (Dev)
- pdepend/pdepend: ~2.0
- phing/phing: ~2.10
- phploc/phploc: ~2.1
- phpmd/phpmd: ~2.2
- phpunit/phpunit: ~4.8
- sebastian/phpcpd: ~2.0
- squizlabs/php_codesniffer: ~2.1
- symfony/console: ~2.7|~3.0
- symfony/yaml: ~2.7|~3.0
- twig/twig: ^1.24
Suggests
- symfony/yaml: For using the YAML loader
This package is not auto-updated.
Last update: 2024-12-21 20:24:49 UTC
README
Lullaby is a layer on Silex\Application
, it adds a better way to organize your project, like Symfony framework.
Install
composer require sergiors/lullaby "dev-master"
How to use
Something like this
namespace Acme\Acme\Apps\Fluffy; use Sergiors\Lullaby\Application\Application; class Fluffy extends Application { }
namespace Acme\Acme; use Sergiors\Lullaby\Kernel; class AppKernel extends Kernel { public function registerApps() { return [ new Fluffy() ]; } public function registerProviders() { return []; } }
In your index file
$env = 'dev'; $debug = false; $rootDir = __DIR__; $app = new Acme\Acme\AppKernel($env, $debug, $rootDir); $app->run();
License
MIT