tommyseus / zend-expressive-symfony-console
This project adds a executable file to the composer bin folder to run symfony commands under a zend-expressive application environment.
Installs: 1 661
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 3
Open Issues: 0
pkg:composer/tommyseus/zend-expressive-symfony-console
Requires
- php: ^7.1
- psr/container: ^1.0.0
- symfony/console: ^4.0.4
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.10.2
- phpunit/phpunit: ^7.0.1
This package is auto-updated.
Last update: 2025-10-24 20:26:20 UTC
README
This project adds a executable file to the composer bin folder to run symfony commands under a zend-expressive application environment.
Installation
Requirements
- PHP 7.1
- a config/container.php file (returns a ContainerInterface instance)
Composer installation
$ composer require tommyseus/zend-expressive-symfony-console
Configuration
zend-expressive configuration
Add the \Seus\Zend\Expressive\SymfonyConsole\ConfigProvider to the config/config.php file.
Configuration of the symfony console application
- Add this configuration to your application config (ex.: config/autoload/ze-sf-console.global.php).
- It is recommended to define the command name.
[
'seus-zend-expressive-symfony-console' => [
'name' => 'Console Name',
'version' => '1.0.0', // optional
'commands' => [
// add the command service names here
// ex.: 'foo:bar' => Command::class, // recommended, lazy
// ex.: Command::class, // not lazy
],
],
'dependencies' => [
'factories' => [
// add commands as a service to the container
// ex.: Command::class => CommandFactory::class,
],
],
],
Run commands
This module adds a executable file under the composer bin directory to execute symfony commands.
$ vendor/bin/ze-sf-console list