PHP code example of daika7ana / dpd-php-sdk
1. Go to this page and download the library: Download daika7ana/dpd-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/ */
daika7ana / dpd-php-sdk example snippets
use Daika7ana\Dpd\Client;
use Daika7ana\Dpd\Config\ClientConfig;
$client = Client::create(
config: new ClientConfig(
username: 'demo-user',
password: 'demo-password',
language: 'RO',
),
);
$services = $client->services()->list();
foreach ($services as $service) {
echo $service->nameEn . PHP_EOL;
}
bash
composer