Recently I’ve came acroos idea to creare unified command line toolkit for common actions for each project, that is based on YF framework.
I was inspired by Laravel “artisan” tool, analyzed it and decided to make similar one, based on Symfony Console component. Main features, why I’ve choosen this component, instead of writing it from scratch, are:
- have built-in self-discovering functionality
- highly customizable
- easy to use in 3rdparty tools like “yf”
- stability and covered by lot of unit tests
https://github.com/yfix/yf/blob/master/.dev/console/yf.php
How to install globally on server:
# export COMPOSER_HOME=/usr/local/share/composer/ # curl -sS https://getcomposer.org/installer | php # composer self-update # composer global require symfony/console:~2.4 Add symlink for "yf" into /usr/local/bin/yf
Usage examples:
yf yf help yf db:utils conf yf core:api