An open API service indexing awesome lists of open source software.

https://github.com/delboy1978uk/bone-console

CLI functionality, run Bone Framework in the terminal
https://github.com/delboy1978uk/bone-console

bone-framework php-framework

Last synced: 8 months ago
JSON representation

CLI functionality, run Bone Framework in the terminal

Awesome Lists containing this project

README

          

# bone-console
[![Latest Stable Version](https://poser.pugx.org/delboy1978uk/bone-console/v/stable)](https://packagist.org/packages/delboy1978uk/bone-console) [![Total Downloads](https://poser.pugx.org/delboy1978uk/bone/downloads)](https://packagist.org/packages/delboy1978uk/bone) [![Latest Unstable Version](https://poser.pugx.org/delboy1978uk/bone-console/v/unstable)](https://packagist.org/packages/delboy1978uk/bone-console) [![License](https://poser.pugx.org/delboy1978uk/bone-console/license)](https://packagist.org/packages/delboy1978uk/bone-console)

![build status](https://github.com/delboy1978uk/bone-console/actions/workflows/master.yml/badge.svg) [![Code Coverage](https://scrutinizer-ci.com/g/delboy1978uk/bone-console/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/delboy1978uk/bone-console/?branch=master) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/delboy1978uk/bone-console/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/delboy1978uk/bone-console/?branch=master)

Bone Framework terminal CLI application functionality
## installation
bone-console is part of the core `delboy1978uk/bone` dependencies, it is installed automatically.
## usage
In your own package registration class, implement the `CommandRegistrationInterface`, and return an array of the
commands you would like to add to the app.
```php
get(Some::class);
$awesomeCommand = new AwesomeCommand();
$differentCommand = new DifferentCommand($someDependency);

return [
$awesomeCommand,
$differentCommand,
];
}
}
```
Now in the Terminal, you can run the `vendor/bin/bone command`, and your commands will be available.