Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 7, 2024 via composer

symfony/console v2.8.43

Symfony Console Component
Package summary
Share
1
issue
1
high severity
meta
1
1
license
4
MIT
Package created
16 Oct 2011
Version published
9 Jul 2018
Maintainers
1
Total deps
4
Direct deps
3
License
MIT

Issues

1

1 high severity issue

high
via: symfony/debug@v3.0.9
Collapse
Expand

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
4 Packages, Including:
psr/log@1.1.4
symfony/console@v2.8.43
symfony/debug@v3.0.9
symfony/polyfill-mbstring@v1.29.0
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

3
All Dependencies CSV
β“˜ This is a list of symfony/console 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
psr/log1.1.410.7 kBMIT
prod dev
symfony/debugv3.0.9-MIT
prod
1
symfony/polyfill-mbstringv1.29.0-MIT
prod

Visualizations

Frequently Asked Questions

What does symfony/console do?

Symfony/Console is a PHP component that simplifies the development of command-line interfaces (CLI). This powerful tool enhances code readability, testability, and overall development productivity, making it easier to create user-friendly and robust console commands. It is a long-established and reputable part of the Symfony ecosystem and is backed by the cooperative Les-Tilleuls.coop.

How do you use symfony/console?

Using Symfony/Console involves installing it and creating a console command. Installation is straightforward and completed with Composer, a commonly used dependency manager in PHP. Below is an example of how to require it in your project:

composer require symfony/console

To create a new console command using the Symfony/Console, you will need to create a new PHP class for your command and define its functionality. An example of how to formulate a simple console command is shown below:

namespace App\Command;

use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

class GreetingCommand extends Command
{
    protected static $defaultName = 'app:greet';

    protected function execute(InputInterface $input, OutputInterface $output): int
    {
        $output->writeln('Hello from Symfony/Console!');

        return Command::SUCCESS;
    }
}

Make sure to add your command to your Symfony console application:

use App\Command\GreetingCommand;
use Symfony\Component\Console\Application;

$application = new Application();
$application->add(new GreetingCommand());
$application->run();

Where are the symfony/console docs?

The complete Symfony/Console documentation can be found on the official Symfony website at the following address: https://symfony.com/doc/current/components/console.html. The documentation provides a comprehensive guide and best practices for using the component, contributing to its development, and reporting issues or sending pull requests via the main Symfony repository on GitHub.