Silly CLI micro-framework based on Symfony Console
Full Changelog: https://github.com/mnapoli/silly/compare/1.8.3...1.9.0
Full Changelog: https://github.com/mnapoli/silly/compare/1.8.2...1.8.3
Full Changelog: https://github.com/mnapoli/silly/compare/1.8.1...1.8.2
Full Changelog: https://github.com/mnapoli/silly/compare/1.8.0...1.8.1
Full Changelog: https://github.com/mnapoli/silly/compare/1.7.3...1.8.0
Compatibility with Symfony 5.
Lighter package when installed via Composer
#33 & #39 Support PSR-11
#39 Support PHP 7.0 and up only
#36 & #38 Allow to inject the SymfonyStyle
object introduced in Symfony 2.8
use \Symfony\Component\Console\Style\SymfonyStyle;
...
$app->command('greet', function (SymfonyStyle $io) {
$io->write('hello');
});
-
in them:$console->command('import [number-of-clicks]', function ($numberOfClicks = 1) {
var_dump($numberOfClicks); // prints 1
});