PHP library to connect to the FromDopple API.
- PHP >= 8.0
- Composer
Add the following to composer.json
{
"require": {
"anibalealvarezs/fromdoppler-php": "*"
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/anibalealvarezs/fromdoppler-php"
}
]
}
Install all composer dependencies using:
composer install
Or install it via GitHub
composer require anibalealvarezs/fromdoppler-php
require_once('/path/to/FromDopplerPHP/vendor/autoload.php');
$doppler = new FromDopplerPHP\ApiClient();
$doppler->setConfig([
'apiKey' => 'YOUR_API_KEY',
'account' => 'YOUR_ACCOUNT', // [email protected]
]);
$response = $doppler->lists->getAllLists();
print_r($response);
The client library must be configured to use Bearer Token.
The APIClient class lets you set various configuration options like timeouts, host, user agent, and debug output.