Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
S

silly

> 开发工具
Open source

Silly CLI micro-framework based on Symfony Console

934 stars0 likes3 views
WebsiteGitHub

About

Silly CLI micro-framework based on Symfony Console


currentMenu: home

Silly CLI micro-framework based on Symfony Console. Professional support for Silly is available via Tidelift

  • Video introduction in french

Installation

bash
$ composer require mnapoli/silly

Usage

Example of a Silly application:

php
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:

bash
$ 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

  • Command definition
  • Command callables
  • Console helpers
  • Dependency injection
    • The PHP-DI edition
    • The Pimple edition

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:

  • Bref
  • Laravel Valet
  • Blacksmith
  • Documentarian

Contributing

See the CONTRIBUTING file.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

PHPclimicro-frameworkphpsymfony-console

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category开发工具
PricingOpen source

> Related tools

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具