Silly

Silly CLI micro-framework based on Symfony Console
Alternatives To Silly
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Console9,429133,6578,23911 days ago561June 26, 2022mitPHP
Eases the creation of beautiful and testable command line interfaces
Laravel Zero3,22911a month ago227August 25, 202246PHP
A PHP framework for console artisans
Drush2,2842,6163942 days ago180September 23, 2022379PHP
Drush is a command-line shell and scripting interface for Drupal, a veritable Swiss Army knife designed to make life easier for those who spend their working hours hacking away at the command prompt.
Drupal Console9252,0902536 months ago139November 29, 2021256gpl-2.0PHP
The Drupal CLI. A tool to generate boilerplate code, interact with and debug Drupal.
Silly8453161107 months ago17February 20, 20223mitPHP
Silly CLI micro-framework based on Symfony Console
Ssh66973 days ago14December 21, 2021mitPHP
A lightweight package to execute commands over an SSH connection
Symfony Console Autocomplete4941123 months ago26April 11, 20223otherPHP
Shell autocompletion for Symfony Console based scripts
Terminal4557a year ago16February 26, 2022PHP
An Elegent wrapper around Symfony's Process component.
Symfony Console Completion4122,544624 months ago22November 24, 201912mitPHP
Automatic tab-key completion for Symfony console application options, arguments and parameters
Certificationy Cli395
2a year ago11February 04, 2022mitPHP
The CLI tool to train certifications
Alternatives To Silly
Select To Compare


Alternative Project Comparisons
Readme

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) {
    $text = $name ? "Hello, $name" : "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.

Popular Command Line Projects
Popular Symfony Projects
Popular Command Line Interface Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Php
Command Line
Symfony
Micro Framework
Symfony Console