1. Go to this page and download the library: Download gdinko/dynamicexpress 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 Gdinko\DynamicExpress\Commands\TrackCarrierDynamicExpressBase;
class TrackCarrierDynamicExpressSetup extends TrackCarrierDynamicExpressBase
{
protected function setup()
{
//define parcel selection logic here
// $this->parcels = [];
}
}
$data = [
// value is taken with getServices Method. Here 1 is ->
// -> "Бързи градски услуги" (fast urban services)
'service' => 1,
// value is taken with getSubServices Method. ->
// -> Here 18 is "48 часа икономична" (48h economical)
'subservice' => 18,
// 0(zero) or 1 (1 if there will be fixed delivery, 0 if not)
'fix_chas' => 0,
// 0(zero) or 1 (1 if there will be return reciept, 0 if not)
'return_receipt' => 0,
// 0(zero) or 1 (1 if there will be return document, 0 if not)
'return_doc' => 0,
// COD(cash on delivery). 0(zero) if there is no COD. ->
// -> USE "."(dot) for decimals!
'nal_platej' => 50,
// Insurance Value. 0(zero) if there is no insurance. ->
// -> USE "."(dot) for decimals!
'zastrahovka' => 50,
// Weigth in kg. CAN'T be 0(zero). Use "."(dot) for decimals.
'teglo' => 2.5,
// ID of the country(ISO standart). ->
// -> Required only for international delivery
'country_b' => 100,
];
$priceData = DynamicExpress::calculate($data);
dd($priceData);
DynamicExpress::getMyObjectInfo();
DynamicExpress::getMyObjects();
DynamicExpress::getOfficesCity();
DynamicExpress::getOfficesCord(100);
DynamicExpress::getSoapCouriers();
//and so on , see the documentation