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 9, 2024 via composer

consolidation/output-formatters 3.1.11

Format text by applying transformations provided by plug-in formatters.
Package summary
Share
1
issue
1
high severity
meta
1
1
license
6
MIT
Package created
4 Apr 2016
Version published
17 Aug 2017
Maintainers
1
Total deps
6
Direct deps
2
License
MIT

Issues

1

1 high severity issue

high
via: symfony/console@v3.4.47
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
6 Packages, Including:
consolidation/output-formatters@3.1.11
psr/log@3.0.0
symfony/console@v3.4.47
symfony/debug@v4.4.44
symfony/finder@v3.4.47
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

2
All Dependencies CSV
β“˜ This is a list of consolidation/output-formatters 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
symfony/consolev3.4.47278.82 kBMIT
prod
1
symfony/finderv3.4.47-MIT
prod

Visualizations

Frequently Asked Questions

What does consolidation/output-formatters do?

The "consolidation/output-formatters" is a PHP library that is primarily used to apply transformations to structured data to write output in different formats. It mainly makes it possible for command-line tool commands to get implemented in a way that is entirely independent from the Symfony Console output interfaces. The main component, known as a formatter, takes the structured data returned by a command and formats it before printing the result.

How do you use consolidation/output-formatters?

To use the "consolidation/output-formatters", you need to include it in your project. You can do this by adding the "consolidation/output-formatters" to the list of required packages in your composer.json file and running composer install. Here's the required code:

"require": {
    "consolidation/output-formatters": "^4"
}

You can then declare and use the formatters in your PHP code. A simple example of a formatter would be a YAML formatter that writes the structured data to the output:

class YamlFormatter implements FormatterInterface
{
    public function write(OutputInterface $output, $data, FormatterOptions $options)
    {
        $dumper = new Dumper();
        $output->writeln($dumper->dump($data));
    }
}

Where are the consolidation/output-formatters docs?

The comprehensive documentation for "consolidation/output-formatters" can be found directly within the GitHub repository at this url: https://github.com/consolidation/output-formatters. It covers a wide range of topics including the motivation behind the library, how to use several formatters, configuring formats for a command, rendering table cells and the API usage among other topics. The documentation is quite detailed, with numerous examples given to aid in understanding.