Skip to content

PHP tool to connect to UPS web service to fetch tracking info via SOAP of a shipment

License

Notifications You must be signed in to change notification settings

brnquester/ups-soap-easytracking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UPS SOAP API Easy Tracking

Status License


Light, simple and easy-to-use library that connects to UPS web service via SOAP (Simple Object Access Protocol) to track and show the details of a shipment.

📝 Table of Contents

🧐 About

This tool was created based upon some requests of an easy and very light way to add a tracking field to a website which the customers could track their shipments within the website.

It offers a copy and past frontend interface to use on your website and customize as you wish. It is a simple Form that process the request via AJAX and uses Bootstrap 4 and Jquery 3.4.1.

🏁 Getting Started

To use it is very simple, you can either directly download the project or use composer. There are no external dependencies.

If you decide to use composer just type:

composer require bruno-canada/ups-soap-easytracking

Prerequisites

Tech: PHP 5.5

UPS Requisites:
You need to have ready to use UPS credentials including: Access Key, Username and Password. You can get more information of how to get it here.

🎈 Usage

Check the folder frontend for ready-to-use sample.

try {

    $ups = new UPS\UPSClient($keyaccess, $userid, $passwd, $mode);
    $resp = $ups->track($trackingNumber);

    print_r($resp);

} catch (\Exception $e) {

    echo "Error: " . $e->getMessage();
}

⛏️ Built Using

✍️ Authors

About

PHP tool to connect to UPS web service to fetch tracking info via SOAP of a shipment

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published