1. Go to this page and download the library: Download vasildakov/shipping 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 VasilDakov\Shipping\Shipping;
use VasilDakov\Shipping\Adapter\EcontAdapter;
use VasilDakov\Shipping\Adapter\SpeedyAdapter;
// using strings
$econt = Shipping::create('Econt');
$speedy = Shipping::create('Speedy');
// ... or using class name
$econt = Shipping::create(EcontAdapter::class);
$speedy = Shipping::create(SpeedyAdapter::class);