PHP code example of richbarrett / parcelforce-tracking-scraper
1. Go to this page and download the library: Download richbarrett/parcelforce-tracking-scraper 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/ */
richbarrett / parcelforce-tracking-scraper example snippets
try {
$trackingNumber = 'AB1234567';
$scraper = new \richbarrett\ParcelforceTrackingScraper\ParcelforceTrackingScraper($trackingNumber);
$events = $scraper->getEvents();
print_r($events);
} catch(Exception $e) {
die('Error: '.$e->getMessage());
}