euskadi31 / console-service-provider
A Console Service Provider for Silex 2.0
v1.0.2
2016-03-31 13:02 UTC
Requires
- silex/silex: ~2.0@dev
- symfony/console: ~2.8|~3.0
Requires (Dev)
- leaphub/phpcs-symfony2-standard: 2.0.1
- phpunit/phpunit: @stable
- satooshi/php-coveralls: dev-master
This package is not auto-updated.
Last update: 2024-12-21 20:36:02 UTC
README
Install
Add euskadi31/console-service-provider
to your composer.json
:
% php composer.phar require euskadi31/console-service-provider:~1.0
Usage
Configuration
<?php $app = new Silex\Application; $app->register(new \Euskadi31\Silex\Provider\ConsoleServiceProvider(), [ 'console.options' => [ 'name' => 'Console', 'version' => '1.2.3' ] ]); $app['console']->add(new HelloCommand()); $code = $app['console']->run(); exit($code);
License
ConsoleServiceProvider is licensed under the MIT license.