Skip to content

Commit 97aaa97

Browse files
committed
Update readme to use badges from shields.io
Signed-off-by: Jack Cherng <jfcherng@gmail.com>
1 parent 31ee440 commit 97aaa97

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

README.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,23 @@
1-
# php-array-dumper [![Build Status](https://travis-ci.org/jfcherng/php-array-dumper.svg?branch=master)](https://travis-ci.org/jfcherng/php-array-dumper)
1+
# php-array-dumper
2+
3+
<a href="https://travis-ci.org/jfcherng/php-array-dumper"><img alt="Travis (.org) branch" src="https://img.shields.io/travis/jfcherng/php-array-dumper/master"></a>
4+
<a href="https://packagist.org/packages/jfcherng/php-array-dumper"><img alt="Packagist" src="https://img.shields.io/packagist/dt/jfcherng/php-array-dumper"></a>
5+
<a href="https://packagist.org/packages/jfcherng/php-array-dumper"><img alt="Packagist Version" src="https://img.shields.io/packagist/v/jfcherng/php-array-dumper"></a>
6+
<a href="https://github.com/jfcherng/php-array-dumper/blob/master/LICENSE"><img alt="Project license" src="https://img.shields.io/github/license/jfcherng/php-array-dumper"></a>
7+
<a href="https://github.com/jfcherng/php-array-dumper/stargazers"><img alt="GitHub stars" src="https://img.shields.io/github/stars/jfcherng/php-array-dumper?logo=github"></a>
8+
<a href="https://www.paypal.me/jfcherng/5usd" title="Donate to this project using Paypal"><img src="https://img.shields.io/badge/paypal-donate-blue.svg?logo=paypal" /></a>
29

310
Dump an array into XML, JSON, YAML, etc...
411

512

6-
# Installation
13+
## Installation
714

8-
```
15+
```bash
916
$ composer require jfcherng/php-array-dumper
1017
```
1118

1219

13-
# Example
20+
## Example
1421

1522
See `demo.php`.
1623

@@ -30,6 +37,7 @@ $array = [
3037
],
3138
];
3239

40+
// 'json', 'xml', 'yaml', 'php'
3341
$dumperName = 'yaml';
3442

3543
// initiate a dumper and optionally set its options
@@ -54,9 +62,3 @@ var_dump($string);
5462
$outputFile = __DIR__ . '/results/test.' . $dumper::EXTENSION;
5563
$success = $dumper->toFile($array, $outputFile);
5664
```
57-
58-
59-
Supporters <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=ATXYY9Y78EQ3Y" target="_blank"><img src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif" /></a>
60-
==========
61-
62-
Thank you guys for sending me some cups of coffee.

demo.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
],
1414
];
1515

16+
// 'json', 'xml', 'yaml', 'php'
1617
$dumperName = 'yaml';
1718

1819
// initiate a dumper and optionally set its options

0 commit comments

Comments
 (0)