Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ziming committed Feb 10, 2025
1 parent 598bd00 commit dc07fa0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,14 @@ return [

```php
$docparser = new Ziming\LaravelDocparser::make();
echo $docparser->ping();
echo $docparser->fetchDocumentFromUrl($parserId, $url);
```

```php

// Alternatively, you can use the facade
use Ziming\LaravelDocparser\Facades\LaravelDocparser;
LaravelDocparser::ping();
LaravelDocparser::fetchDocumentFromUrl($parserId, $url);
```

Look at the source code of `src/LaravelDocparser.php` for more methods (link below):
Expand Down

0 comments on commit dc07fa0

Please sign in to comment.