PHP code example of dennisvandalen / shipment-url-parser-php
1. Go to this page and download the library: Download dennisvandalen/shipment-url-parser-php 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/ */
dennisvandalen / shipment-url-parser-php example snippets
$shipment = (new ShipmentUrlParser())
->parse('https://dhlparcel.nl/en/private/receiving/follow-your-shipment?tt=TRACKING_CODE&pc=ZIPCODE');
//DennisVanDalen\ShipmentUrlParser\DTO\Shipment {
// +url: "https://dhlparcel.nl/en/private/receiving/follow-your-shipment?tt=TRACKING_CODE&pc=ZIPCODE"
// +trackingCode: "TRACKING_CODE"
// +carrier: "DHL"
// +carrierName: "DHL"
//}