All Projects → mnapoli → Silly

mnapoli / Silly

Licence: mit
Silly CLI micro-framework based on Symfony Console

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
Bandwhich
Terminal bandwidth utilization tool
Stars: ✭ 6,737 (+751.71%)
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
Argh
Argh! A minimalist argument handler.
Stars: ✭ 752 (-4.93%)
Mutual labels:  cli
Cfonts
Sexy fonts for the console
Stars: ✭ 789 (-0.25%)
Mutual labels:  cli
Pixterm
Draw images in your ANSI terminal with true color
Stars: ✭ 782 (-1.14%)
Mutual labels:  cli
Term2048
🎉 2048 in your terminal
Stars: ✭ 777 (-1.77%)
Mutual labels:  cli
Chafa
📺🗿 Terminal graphics for the 21st century.
Stars: ✭ 774 (-2.15%)
Mutual labels:  cli
Js Liftoff
Launch your command line tool with ease.
Stars: ✭ 761 (-3.79%)
Mutual labels:  cli
Hostess
An idempotent command-line utility for managing your /etc/hosts file.
Stars: ✭ 779 (-1.52%)
Mutual labels:  cli
Crowbar
Cloud Operations Platform
Stars: ✭ 760 (-3.92%)
Mutual labels:  cli
Swiftkit
Start your next Open-Source Swift Framework 📦
Stars: ✭ 785 (-0.76%)
Mutual labels:  cli
Glow
Render markdown on the CLI, with pizzazz! 💅🏻
Stars: ✭ 7,596 (+860.3%)
Mutual labels:  cli
Klein
werkzeug + twisted.web
Stars: ✭ 770 (-2.65%)
Mutual labels:  micro-framework
Fkill Cli
Fabulously kill processes. Cross-platform.
Stars: ✭ 6,418 (+711.38%)
Mutual labels:  cli
Ipt
Interactive Pipe To: The Node.js cli interactive workflow
Stars: ✭ 783 (-1.01%)
Mutual labels:  cli
Fiona
Fiona reads and writes geographic data files
Stars: ✭ 787 (-0.51%)
Mutual labels:  cli

currentMenu: home

Silly CLI micro-framework based on Symfony Console.

Build Status Coverage Status Scrutinizer Code Quality Packagist

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].