PHP code example of amirovn / cost-of-transportation-transport-company
1. Go to this page and download the library: Download amirovn/cost-of-transportation-transport-company 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/ */
amirovn / cost-of-transportation-transport-company example snippets
// Перевозка terminal - terminal
tCompany\ApiTransportCompany();
$from = 'Краснодар'; // Откуда
$to = 'Москва'; // Куда
$weight = 20; // Вес
$places = 2; // Количество мест
$length = 0.2; // Длина одного места
$width = 0.2; //Ширина одного места
$height = 0.2; //Высота одного места
// Главдоставка
echo $api->glavDostavka($from, $to, $weight, $places, $length, $weight, $height);
// Кит
echo $api->kit($from, $to, $weight, $places, $length, $weight, $height);
// ПЭК
echo $api->pecom('key', 'login', $from, $to, $weight, $places, $length, $weight, $height);
// ЦАП
echo $api->avtotransit($from, $to, $weight, $places, $length, $width, $height);
// ЖелДорЭкспедиция
echo $api->jde($from, $to, $weight, $places, $length, $width, $height);
// dpd
echo $api->dpd('clientNumber', 'clientKey', $from, $to, $weight, $places, $length, $width, $height);
// Деловые линии
echo $api->dellin('appKey', $from, $to, $weight, $places, $length, $width, $height);
// Vozovoz
echo $api->Vozovoz('token', $from, $to, $weight, $places, $length, $width, $height);