mnapoli / Silly
Licence: mit
Silly CLI micro-framework based on Symfony Console
Stars: ✭ 791
Labels
Projects that are alternatives of or similar to Silly
Laravel Zero
A PHP framework for console artisans
Stars: ✭ 2,821 (+256.64%)
Mutual labels: cli, micro-framework
Bash My Aws
Bash-my-AWS provides simple but powerful CLI commands for managing AWS resources
Stars: ✭ 782 (-1.14%)
Mutual labels: cli
Multi
Create a custom, lightweight macOS app from a group of websites
Stars: ✭ 755 (-4.55%)
Mutual labels: cli
Dasel
Query, update and convert data structures from the command line. Comparable to jq/yq but supports JSON, TOML, YAML, XML and CSV with zero runtime dependencies.
Stars: ✭ 759 (-4.05%)
Mutual labels: cli
Archisteamfarm
C# application with primary purpose of idling Steam cards from multiple accounts simultaneously.
Stars: ✭ 7,219 (+812.64%)
Mutual labels: cli
Hostess
An idempotent command-line utility for managing your /etc/hosts file.
Stars: ✭ 779 (-1.52%)
Mutual labels: cli
Ipt
Interactive Pipe To: The Node.js cli interactive workflow
Stars: ✭ 783 (-1.01%)
Mutual labels: cli
currentMenu: home
Silly CLI micro-framework based on Symfony Console.
Professional support for Silly is available via Tidelift
Installation
$ composer require mnapoli/silly
Usage
Example of a Silly application:
use Symfony\Component\Console\Output\OutputInterface;
$app = new Silly\Application();
$app->command('greet [name] [--yell]', function ($name, $yell, OutputInterface $output) {
if ($name) {
$text = 'Hello, '.$name;
} else {
$text = 'Hello';
}
if ($yell) {
$text = strtoupper($text);
}
$output->writeln($text);
});
$app->run();
Running the application is the same as running any other Symfony Console application:
$ php application.php greet
Hello
$ php application.php greet john --yell
HELLO JOHN
$ php application.php greet --yell john
HELLO JOHN
Silly\Application
extends Symfony\Console\Application
and can be used wherever Symfony's Application can.
Documentation
Do more
Silly is just an implementation over the Symfony Console. Read the Symfony documentation to learn everything you can do with it.
Example applications
Interested in seeing examples of Silly applications? Have a look at this short selection:
Contributing
See the CONTRIBUTING file.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].