darkain / php-tracking-urls
Converts package tracking numbers into URLs (UPS, FedEx, USPS, and more)
Installs: 534
Dependents: 0
Suggesters: 0
Security: 0
Stars: 53
Watchers: 7
Forks: 25
Open Issues: 2
Requires
- php: >=5.4
This package is auto-updated.
Last update: 2024-03-30 00:18:47 UTC
README
About
PHP Package Tracking URL Library is used to convert package tracking numbers into their respective shipper's online tracking URL format.
Supported shippers:
- United States Postal Service (USPS)
- United Parcel Service (UPS)
- Federal Express (FedEx)
- OnTrac
- DHL
License
This software library is licensed under the BSD 2-clause license, and may be freely used in any project which is compatible with this license.
Example
Usage:
$tracking = '1Z9999W99999999999'; $url = get_tracking_url($tracking); echo $url;
Output:
http://wwwapps.ups.com/WebTracking/processInputRequest?TypeOfInquiryNumber=T&InquiryNumber1=1Z9999W99999999999