Skip to content
This repository was archived by the owner on Mar 22, 2020. It is now read-only.

Commit 2266536

Browse files
committed
Minor updates to readme
1 parent f614df4 commit 2266536

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ $ composer require predicthq/address-formatter
1414

1515
### Examples
1616

17-
You can use either the `Adress` object or provide an array of address parts.
17+
You can use either the `Address` object or provide an array of address parts.
1818

1919
```php
2020
use PredictHQ\AddressFormatter\Address;
@@ -32,6 +32,14 @@ $a->setCity('Wellington')
3232

3333
$text = $a->format();
3434

35+
/**
36+
* Will display as:
37+
*
38+
* 53 Pirie Street
39+
* Mount Victoria
40+
* Wellington 6011
41+
* New Zealand
42+
*/
3543
echo $text;
3644
```
3745

@@ -52,6 +60,14 @@ $address = [
5260
'suburb' => 'Mount Victoria',
5361
];
5462

63+
/**
64+
* Will display as:
65+
*
66+
* 53 Pirie Street
67+
* Mount Victoria
68+
* Wellington 6011
69+
* New Zealand
70+
*/
5571
$f = new Formatter();
5672
$actual = $f->formatArray($address);
5773
```

0 commit comments

Comments
 (0)