bruno-canada/ups-soap-easytracking

UPS SOAP API Easy Tracking

dev-master 2019-12-07 23:50 UTC

This package is auto-updated.

Last update: 2024-09-12 12:56:50 UTC


README

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