Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris authored May 8, 2017
1 parent 7f94b66 commit e4009c8
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,19 @@ Pass the absolute path to your Open Tibia server as the first argument of the `E
The `parse` method also accepts a second argument for additional attributes (depends on the parser), and a third argument for overriding the default filepath (or providing a specific parser with a filepath).

```php
use Exception;
use pandaac\Exporter\Parsers;
use pandaac\Exporter\Exporter;

$exporter = new Exporter(
'/home/pandaac/theforgottenserver'
);
try {
$exporter = new Exporter(
'/home/pandaac/theforgottenserver'
);

$response = $exporter->parse(new Parsers\Weapons);
$response = $exporter->parse(new Parsers\Weapons);
} catch (Exception $e) {
// Handle exceptions as you see fit...
}
```

## Parsers
Expand Down

0 comments on commit e4009c8

Please sign in to comment.