1. Go to this page and download the library: Download piteurstudio/courierdz 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/ */
piteurstudio / courierdz example snippets
// Ecotrack providers
$credentials = ['token' => '****'];
// Procolis providers ( ZREXPRESS )
$credentials = ['id' => '****', 'token' => '****'];
// Yalidine providers
$credentials = ['token' => '****', 'key' => '****'];
// Mayestro Delivery providers
$credentials = ['token' => '****'];
$shipping_provider = CourierDZ::provider(ShippingProvider::ZREXPRESS, $credentials);
// or
$shipping_provider = new XyzProvider($credentials); // where Xyz is the provider name