Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on May 18, 2024 via composer

consolidation/output-formatters 4.5.0

Format text by applying transformations provided by plug-in formatters.
Package summary
Share
0
issues
1
license
12
MIT
Package created
4 Apr 2016
Version published
2 Apr 2024
Maintainers
1
Total deps
12
Direct deps
3
License
MIT

Issues

0
This package has no issues

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
12 Packages, Including:
consolidation/output-formatters@4.5.0
dflydev/dot-access-data@v3.0.2
psr/container@2.0.2
symfony/console@v7.0.7
symfony/deprecation-contracts@v3.5.0
symfony/finder@v7.0.7
symfony/polyfill-ctype@v1.29.0
symfony/polyfill-intl-grapheme@v1.29.0
symfony/polyfill-intl-normalizer@v1.29.0
symfony/polyfill-mbstring@v1.29.0
symfony/service-contracts@v3.5.0
symfony/string@v7.0.7
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 consolidation/output-formatters 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
dflydev/dot-access-datav3.0.210.25 kBMIT
prod
symfony/consolev7.0.7-MIT
prod
symfony/finderv7.0.7-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.