Skip to content

Commit ab58674

Browse files
committed
Update readme file
1 parent d358e01 commit ab58674

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

readme.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ Formatter Bundle
66
A formatter package that will help you to easily convert between various formats such as XML, JSON, CSV, etc...
77

88
# Goals
9-
The goals of this library to to allow the transfomation of data formats from one type to another. See Parsers and Formats to see supported input / output formats.
9+
The goals of this library are to allow the transfomation of data formats from one type to another.
10+
See Parsers and Formats to see supported input / output formats.
1011

1112
# Installation
1213

@@ -43,7 +44,7 @@ All of the following are formats that are supported for output.
4344
* XML
4445
* YAML
4546

46-
## General Usage (See tests for most up to date examples)
47+
## General Usage
4748

4849
__Including The Formatter__
4950

@@ -61,20 +62,23 @@ Formatter::ARR; //array
6162
Formatter::YAML; //yaml
6263
```
6364

64-
__Making Your First Formatter__
65+
__Making Your First Formatter(s)__
6566

6667
```php
6768
$formatter = Formatter::make($jsonString, Formatter::JSON);
69+
$formatter = Formatter::make($yamlString, Formatter::YAML);
70+
$formatter = Formatter::make($array, Formatter::ARR);
71+
...
6872
```
6973

7074
__Outputting From Your Formatter__
7175

7276
```php
73-
$csv = $formatter->toCsv();
74-
$json = $formatter->toJson();
75-
$xml = $formatter->toXml();
77+
$csv = $formatter->toCsv();
78+
$json = $formatter->toJson();
79+
$xml = $formatter->toXml();
7680
$array = $formatter->toArray();
77-
$yaml = $formatter->toYaml();
81+
$yaml = $formatter->toYaml();
7882
```
7983

8084
## Deprecated Functionality

0 commit comments

Comments
 (0)