2017 © Pedro Peláez
 

library m-commander

Easy tool for executing your own module via command line

image

200mph/m-commander

Easy tool for executing your own module via command line

  • Tuesday, December 6, 2016
  • by 200MPH
  • Repository
  • 1 Watchers
  • 0 Stars
  • 42 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 16 Versions
  • 0 % Grown

The README.md

m-commander

Easy tool for executing your own module via command line, (*1)

1.Install via Composer (best option, however you can use it without it), (*2)

"200mph/m-commander": "1.1.*"

2.Create your command line module class and extend AbstractCliModule() from m-commander vendor, (*3)

namespace cli\MyTest;

use m-commander\AbstractCliModule;

class TestMe() extends AbstractCliModule 
{

    /**
     * We have to create execute() method (abstraction requirements)
     *
     * @return void
    /*
    protected function execute()
    {

        $this->successOutput('Hello World' . PHP_EOL);

    }
}

3.Run your module, (*4)

./vendor/bin/m-commander cli\\MyTest\\TestMe -v

You can also use semi quotes to avoid double back slashes notation., (*5)

./vendor/bin/m-commander 'cli\MyTest\TestMe' -v

Above notation is recommended if command have to be executed in CRON, or another shell script., (*6)

For more examples please have a look in to ./examples folder, (*7)

4.Default options, (*8)

-h --help Display this page -v --verbose Verbose mode -w --write-output Write output in to file. Eg "./m-commander 'myNamespace\MyModule' -w /home/user/test.log" -l --lock Lock module process. Will not let you run another instance of this same module until current is finished. However you can execute script for another module., (*9)

The Versions

06/12 2016

dev-develop

dev-develop https://github.com/200MPH/m-commander

Easy tool for executing your own module via command line

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Wojciech Brozyna

cli command line exec

06/12 2016

dev-master

9999999-dev https://github.com/200MPH/m-commander

Easy tool for executing your own module via command line

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Wojciech Brozyna

cli command line exec

06/12 2016

1.1.5

1.1.5.0 https://github.com/200MPH/m-commander

Easy tool for executing your own module via command line

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Wojciech Brozyna

cli command line exec

05/12 2016

1.1.4

1.1.4.0 https://github.com/200MPH/m-commander

Easy tool for executing your own module via command line

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Wojciech Brozyna

cli command line exec

05/09 2016

1.1.3

1.1.3.0 https://github.com/200MPH/m-commander

Easy tool for executing your own module via command line

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Wojciech Brozyna

cli command line exec

15/04 2016

1.1.2

1.1.2.0 https://github.com/200MPH/m-commander

Easy tool for executing your own module via command line

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Wojciech Brozyna

cli command line exec

22/01 2016

1.1.1

1.1.1.0 https://github.com/200MPH/m-commander

Easy tool for executing your own module via command line

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Wojciech Brozyna

cli command line exec

21/01 2016

1.1.0

1.1.0.0 https://github.com/200MPH/m-commander

Easy tool for executing your own module via command line

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Wojciech Brozyna

cli command line exec

22/12 2015

1.0.7

1.0.7.0 https://github.com/200MPH/m-commander

Easy tool for executing your own module via command line

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Wojciech Brozyna

cli command line exec

18/12 2015

1.0.6

1.0.6.0 https://github.com/200MPH/m-commander

Easy tool for executing your own module via command line

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Wojciech Brozyna

cli command line exec

18/12 2015

1.0.5

1.0.5.0 https://github.com/200MPH/m-commander

Easy tool for executing your own module via command line

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Wojciech Brozyna

cli command line exec

18/12 2015

1.0.4

1.0.4.0 https://github.com/200MPH/m-commander

Easy tool for executing your own module via command line

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Wojciech Brozyna

cli command line exec

18/12 2015

1.0.3

1.0.3.0 https://github.com/200MPH/m-commander

Easy tool for executing your own module via command line

  Sources   Download

The Requires

  • php >=5.4.0

 

The Development Requires

by Wojciech Brozyna

cli command line exec

18/12 2015

1.0.2

1.0.2.0 https://github.com/200MPH/m-commander

Easy tool for executing your own module via command line

  Sources   Download

The Requires

  • php >=5.4.0

 

The Development Requires

by Wojciech Brozyna

18/12 2015

1.0.1

1.0.1.0 https://github.com/200MPH/m-commander

Easy tool for executing your own module via command line

  Sources   Download

The Requires

  • php >=5.4.0

 

The Development Requires

by Wojciech Brozyna

18/12 2015

1.0.0

1.0.0.0 https://github.com/200MPH/m-commander

Easy tool for executing your own module via command line

  Sources   Download

The Requires

  • php >=5.4.0

 

The Development Requires

by Wojciech Brozyna