Download the PHP package buzzingpixel/corbomite-cli without Composer
On this page you can find all versions of the php package buzzingpixel/corbomite-cli. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download buzzingpixel/corbomite-cli
More information about buzzingpixel/corbomite-cli
Files in buzzingpixel/corbomite-cli
Package corbomite-cli
Short Description Corbomite CLI
License Apache-2.0
Homepage https://buzzingpixel.com/
Informations about the package corbomite-cli
Corbomite CLI
Part of BuzzingPixel's Corbomite project.
Provides a light framework for registering and running commands on the PHP CLI.
Usage
In your CLI front controller, use the dependency injector to call the Kernel (note that APP_BASE_PATH
must be defined):
Actions (Commands)
Your app or composer package can provide actions to run on the command line. To do so, set a cliActionConfigFilePath
key in the extra
object of your composer.json:
The return of your config file path should be an array formatted like this:
The kernel will try to get your class from the Corbomite Dependency Injector before new
ing it up so you can set up dependency injection on your action classes if you desire.
The called action method will receive one argument of \corbomite\cli\models\CliArgumentsModel
.
Question Service
You can use the Question Service to ask questions on the console and wait for the user's response:
License
Copyright 2018 BuzzingPixel, LLC
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
All versions of corbomite-cli with dependencies
nunomaduro/collision Version ^2.1
buzzingpixel/corbomite-di Version ^1.0
symfony/console Version ^4.2
codedungeon/phpunit-result-printer Version ^0.26.0