Skip to content

irihit/php-console-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

php-console-app

Console application sample

use Symfony The Console Component, Zend ServiceManager

Application Configuration

use config/config.yaml

name: php-console-app
version: "1.0.0"
commands:
  - Irihit\Console\Command\HelloWorldCommand

Application Factory Configuration

use config/factory.php

return [
    'services' => [
    ],
    'factories' => [
        // Command Factories
        \Irihit\Console\Command\HelloWorldCommand::class
        => \Irihit\Console\Command\HelloWorldCommandFactory::class,
    ],
    'invokables' => [
    ],
    'aliases' => [
    ],
    'shared' => [
    ],
    'shared_by_default' => false,
];

Usage

Hello World

php console hello-world

Special Thanks

Yuuki Takezawa (ytake)

About

Console application sample

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages