dev-master
9999999-dev http://rapture.iuliann.roRapture CLI command component
MIT
The Requires
- php >=5.4.0
by Iulian N.
library
v1.0
1.0.0.0 http://rapture.iuliann.roRapture CLI command component
MIT
The Requires
- php >=5.4.0
by Iulian N.
library
Wallogit.com
2017 © Pedro Peláez
Rapture CLI command component
Simple PHP command class., (*2)
composer require mrjulio/rapture-command
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
Iulian N. rapture@iuliann.ro, (*3)
cd ./test && phpunit
Rapture PHP command is licensed under the MIT License - see the LICENSE file for details., (*4)
Rapture CLI command component
MIT
library
Rapture CLI command component
MIT
library