PHP Classes

ShipTrack: Ship Tracking Class

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 57%Total: 2,361 All time: 1,654 This week: 560Up
Version License PHP version Categories
shiptrack 1.0.0Freely Distributable4E-Commerce
Description 

Author

The ShipTrack class allows a user to provide a Carrier Code and Tracking Number, and receive a direct link to the results on the carrier's website. Currently Supported Carriers are:

UPS
FEDEX
ROADWAY
BAX GLOBAL
NEW PENN
ABF
REDSTAR
YELLOW
DHL
Fedex Freight East
EMERY GLOBAL
G.O.D.
Old Dominion
US Post Office
Cargo Connect (CCX)

With more on the way. Please send me your sample tracking codes and URLs to shipping carriers that I do not yet support so I may add them in!

Picture of SuperTom
Name: SuperTom <contact>
Classes: 1 package by
Country: United States United States

Example

<?
# testshiptrack.php - test use of shiptrack class - note all shipping numbers are not valid.

   
include "shiptrack.inc";
   
$MyLink = new ShipTrack();
   
$MyLink->PrintLink("UPS","1234324324","1","","_blank","foobar");
    echo
"<br>";
   
$MyLink->PrintLink("FEDEX","234234234","<font face=\"arial\"><B>FEDEX</B></font>","","_blank");
    echo
"<br>";
   
$MyLink->DEBUG=1;
   
$MyLink->PrintLink("CCX","EI_053_12345675","1","","_blank");

?>


  Files folder image Files (3)  
File Role Description
Accessible without login Plain text file ccx.txt Doc. Notes on CCX carrier
Plain text file shiptrack.inc Class Class Source code
Accessible without login Plain text file testshiptrack.php Example Test file for ShipTrack class

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:2,361
This week:0
All time:1,654
This week:560Up
 User Ratings  
 
 All time
Utility:75%StarStarStarStar
Consistency:66%StarStarStarStar
Documentation:66%StarStarStarStar
Examples:66%StarStarStarStar
Tests:-
Videos:-
Overall:57%StarStarStar
Rank:1696