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
- Host: GitHub
- URL: https://github.com/delboy1978uk/bone-console
- Owner: delboy1978uk
- License: mit
- Created: 2020-03-07T11:24:14.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-03-21T00:55:48.000Z (almost 2 years ago)
- Last Synced: 2025-06-20T23:44:31.748Z (9 months ago)
- Topics: bone-framework, php-framework
- Language: PHP
- Homepage: https://boneframework.delboysplace.co.uk
- Size: 226 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# bone-console
[](https://packagist.org/packages/delboy1978uk/bone-console) [](https://packagist.org/packages/delboy1978uk/bone) [](https://packagist.org/packages/delboy1978uk/bone-console) [](https://packagist.org/packages/delboy1978uk/bone-console)
 [](https://scrutinizer-ci.com/g/delboy1978uk/bone-console/?branch=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.