Build your application with SymfonyConsole and Box2 builder, and How to rend PHP a Sript OOP Langage !!
composer updatebox buildphp build.phar list curl -sS https://github.com/nfouka/BuildConsolePHP/raw/master/build.phar -L -o build.pharOR ( If you don't have curl you can try )
php -r "readfile('https://github.com/nfouka/BuildConsolePHP/raw/master/build.phar');" > drupal.phar