2017 © Pedro Peláez
 

library rapture-command

Rapture CLI command component

image

mrjulio/rapture-command

Rapture CLI command component

  • Saturday, November 18, 2017
  • by MrJulio
  • Repository
  • 0 Watchers
  • 0 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Rapture PHP command component

PhpVersion License, (*1)

Simple PHP command class., (*2)

Requirements

  • PHP v5.4

Install

composer require mrjulio/rapture-command

Quick start


namespace AppName\Domain\Command; class DayOfWeek extends Command { public static function getOptions() { return [ 'd' => ['date', self::REQUIRED, 'Date', null], ]; } public function execute() { $date = new \DateTime($this->getOption('date')); $this->output($date->format('W')); } }
# run inside \AppName\Domain\Command
php console.php --cmd=DayOfWeek --env=dev --date=2017-01-01

About

Author

Iulian N. rapture@iuliann.ro, (*3)

Testing

cd ./test && phpunit

License

Rapture PHP command is licensed under the MIT License - see the LICENSE file for details., (*4)

The Versions

18/11 2017

dev-master

9999999-dev http://rapture.iuliann.ro

Rapture CLI command component

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

library

18/11 2017

v1.0.1

1.0.1.0 http://rapture.iuliann.ro

Rapture CLI command component

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

library

15/06 2017

v1.0

1.0.0.0 http://rapture.iuliann.ro

Rapture CLI command component

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

library