Skip to content

Commit 4db27e3

Browse files
authored
Update README.md
Added composer updates to quick start
1 parent 65ea387 commit 4db27e3

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,19 @@ An extension of PHP's XMLReader to include a simplified interface.
33

44
## Quick Start
55

6+
XMLReaderReg can be installed using
7+
8+
```
9+
composer require nigelrel3/xml-reader-reg
10+
```
11+
612
Rather than having to use boiler plate code to fetch particular elements, XMLReaderReg allows you to register an interest in certain elements along with a callback. This effectively changes it from a pull parser to a push parser.
713

814
```php
9-
require_once __DIR__ . '/../XMLReaderReg.php';
15+
require_once __DIR__ . '/../vendor/autoload.php';
1016

1117
$inputFile = __DIR__ ."/../tests/data/simpleTest1.xml";
12-
$reader = new XMLReaderReg();
18+
$reader = new XMLReaderReg\XMLReaderReg();
1319
$reader->open($inputFile);
1420

1521
$reader->process([

0 commit comments

Comments
 (0)