2017 © Pedro Peláez
 

library perseus

Perseus is a command line service runner based on Symfony Console

image

manufacturing-industry/perseus

Perseus is a command line service runner based on Symfony Console

  • Thursday, September 22, 2016
  • by SourceCode
  • Repository
  • 1 Watchers
  • 0 Stars
  • 86 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 1 % Grown

The README.md

Perseus

Perseus is a command line service runner boilerplate based on Symfony Console, (*1)

Installation

Perseus is a PSR-4 compatible package. You can install it via composer as a package in your application., (*2)

Composer

composer require manufacturing-industry/perseus

First Time Use

Create a new instance of Perseus in a empty php file and then run the following commands:, (*3)

Run the command line utility

php <myfile.php>

This will output the information about the command line utility., (*4)

Build a Command

Commands are built using the Symfony structure for console commands. These commands can be stored anywhere but must be in the Perseus Command namespace., (*5)

Required Namespace
Perseus\Console\Command
Example: Perseus\Console\Command\TestConsole
Example: The above namespace would translate to a class named Testconsole.

Add Command to the Console

You can easily add commands to the console by supplying an array of class names of your commands as the first argument to the class when constructing it., (*6)

Example PHP:
//commands is an array of class names that are symfony console commands in the perseus namespace
$commands = array('TestCommand', 'TestCommand2', 'AnotherCommand');
new Perseus($commands);

You can now run the file you have instantiated Persus within and run your console commands. Let's suppose that file is console.php, (*7)

Example Perseus Commands
php console.php testcommand1:task1
php console.php testcommand2:update
php console.php another:run

Found a Bug?

Please report any bugs to the issues section., (*8)

License & Author

License Information
  • MIT - https://opensource.org/licenses/MIT
Author
  • Ryan Rentfro - https://github.com/SourceCode

The Versions

22/09 2016

dev-master

9999999-dev

Perseus is a command line service runner based on Symfony Console

  Sources   Download

MIT

The Requires

 

The Development Requires

php command line symfony modular runner task runner cl

22/09 2016

v0.1.2

0.1.2.0

Perseus is a command line service runner based on Symfony Console

  Sources   Download

MIT

The Requires

 

The Development Requires

php command line symfony modular runner task runner cl

04/07 2016

v0.1.1

0.1.1.0

Perseus is a command line service runner based on Symfony Console

  Sources   Download

MIT

The Requires

 

The Development Requires

php command line symfony modular runner task runner cl

03/07 2016

0.1.0

0.1.0.0

Perseus is a command line service runner based on Symfony Console

  Sources   Download

MIT

The Requires

 

The Development Requires

php command line symfony modular runner task runner cl