Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
webeweb committed Sep 27, 2021
1 parent 674a8ba commit 3e0adc6
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions doc/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,23 @@
DOCUMENTATION
=============

> IMPORTANT NOTICE: The API provider can be used with a debug flag and/or a
> logger with the following code:
```php
use Psr\Log\LoggerInterface;
use WBW\Library\Pappers\Provider\APIv2Provider;

/** @var LoggerInterface $logger */
// $logger = ...

// Create the API provider.
$provider = new APIv2Provider("YOUR_API_KEY", $logger);
$provider->setDebug(true);
```

---

Entreprise

```php
Expand Down

0 comments on commit 3e0adc6

Please sign in to comment.