PHP code example of rpungello / package-tracking
1. Go to this page and download the library: Download rpungello/package-tracking 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/ */
rpungello / package-tracking example snippets
$instance = new \Rpungello\PackageTracking\PackageTracking();
$package = $instance->parseTrackingNumber('1Z12345E0305271640');
$packages = $instance->parsePackages("First line has a tracking number 1Z12345E0305271640 and some other text\nSecond line has 1Z12345E0205271688");