1. Go to this page and download the library: Download myparcelbe/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/ */
$myParcelCollection = new \MyParcelBE\Sdk\src\Helper\MyParcelCollection();
foreach ($yourShipments as $yourShipment) {
$consignment = (new \MyParcelBE\Sdk\src\Model\Repository\MyParcelConsignmentRepository())
->setApiKey('api_key_from_MyParcel_backoffice')
->setReferenceId($yourShipment->getOrderId()
->setName('Piet Hier');
/** @todo; set all info */
$myParcelCollection
->setUserAgent('name_of_cms', '1.0')
->addConsignment($consignment)
}