Skip to content

Commit

Permalink
v4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-1-anderson committed Oct 29, 2019
1 parent fa89f6f commit 8e74776
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,9 @@
# Change Log

### 4.0.0 - 29 Oct 2019

- Compatible with the 3.x branch, but removes support for old PHP versions and requires Symfony 4.

### 3.5.0 - 30 May 2019

- Add `@default-table-fields` to specify the fields to use with the table formatter and other "human readable" output formats.
Expand Down
7 changes: 1 addition & 6 deletions README.md
Expand Up @@ -8,10 +8,6 @@ Apply transformations to structured data to write output in different formats.
[![Coverage Status](https://coveralls.io/repos/github/consolidation/output-formatters/badge.svg?branch=master)](https://coveralls.io/github/consolidation/output-formatters?branch=master)
[![License](https://poser.pugx.org/consolidation/output-formatters/license)](https://packagist.org/packages/consolidation/output-formatters)

## Component Status

Currently in use in [Robo](https://github.com/consolidation/Robo) (1.x+), [Drush](https://github.com/drush-ops/drush) (9.x+) and [Terminus](https://github.com/pantheon-systems/terminus) (1.x+).

## Motivation

Formatters are used to allow simple commandline tool commands to be implemented in a manner that is completely independent from the Symfony Console output interfaces. A command receives its input via its method parameters, and returns its result as structured data (e.g. a php standard object or array). The structured data is then formatted by a formatter, and the result is printed.
Expand All @@ -23,10 +19,9 @@ This process is managed by the [Consolidation/AnnotationCommand](https://github.
This is a library intended to be used in some other project. Require from your composer.json file:
```
"require": {
"consolidation/output-formatters": "~3"
"consolidation/output-formatters": "^4"
},
```
If you require the feature that allows a data table to be automatically reduced to a single element when the `string` format is selected, then you should require version ^2 instead. In most other respects, the 1.x and 2.x versions are compatible. See the [CHANGELOG](CHANGELOG.md) for details.

## Example Formatter

Expand Down

0 comments on commit 8e74776

Please sign in to comment.