1. Go to this page and download the library: Download daika7ana/ecolet-php-sdk library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
use Daika7ana\Ecolet\Config\ClientConfig;
ClientConfig::setTestMode(true); // Enable staging
use Daika7ana\Ecolet\Client;
use Daika7ana\Ecolet\Config\ClientConfig;
// Staging
$config = new ClientConfig(baseUrl: ClientConfig::BASE_URL_STAGING);
$client = Client::create(config: $config);
// Or production (the default)
$config = new ClientConfig(baseUrl: ClientConfig::BASE_URL_PRODUCTION);
$client = Client::create(config: $config);