mcstreetguy/smart-console

This package is abandoned and no longer maintained. No replacement package was suggested.

The smarter php console toolkit.

v0.1.0-alpha 2018-11-09 09:16 UTC

This package is auto-updated.

Last update: 2021-12-27 17:39:34 UTC


README

The smarter php console toolkit.

GitHub issues GitHub forks GitHub stars GitHub license GitHub (pre-)release GitHub (Pre-)Release Date GitHub last commit GitHub top language GitHub contributors Documentation Status

Have you ever wondered why it is so complicated to write a console application in PHP? Whichever library you use, you'll end up with hundreds of lines of configuration before you can even read the first 'Hello World' in the terminal.

That's over now! SmartConsole is the first console toolkit for PHP that you hardly have to configure at all. All you do is write classes as you are used to and document them properly. Smart Console analyzes your command handlers and makes all settings automatically so you can sit back and concentrate on your real goal.

SmartConsole is wrapped around the great webmozart/console package and its approach is based on the CLI of the ingenious Neos CMS. Besides it merges together some of the basic functionalities from the underlying console-package and advanced features like progress-bars from CLImate.

Read on to learn more about how to use it.

Installation

Require the library through Composer:

$ composer require mcstreetguy/smart-console

Usage

Check out the official documentation for more information on how to use this library.

Contributing

If you find any bug or have a suggestion for an improvement or new feature, visit the Issues-page and leave a notice. Please check if something similar has already been reported in any case to prevent duplicates. Feel free to modify the source code on your own and create a pull-request in conjunction with your improvement or bug.

License

SmartConsole is licensed under the MIT license. A copy of that license is distributed together with the source code. You may find that file under /LICENSE in the projects root directory or online at: https://github.com/MCStreetguy/SmartConsole/blob/master/LICENSE

Disclaimer

(taken from the LICENSE file, slightly adapted in favour of readability)

The software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages or other liability, wheter in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the software.