Download the PHP package trackingmore/trackingmore-sdk-php without Composer

On this page you can find all versions of the php package trackingmore/trackingmore-sdk-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package trackingmore-sdk-php

TrackingMore API PHP SDK

The PHP SDK of TrackingMore API

Contact: [email protected]

Official document

Document

Index

  1. Installation
  2. Testing
  3. SDK
    1. Couriers
    2. Trackings
    3. Air Waybill

Installation

Option 1 (recommended): Download and Install Composer.

Run the following command to require TrackingMore PHP SDK

Use autoloader to import SDK files

Option 2: Manual installation
  1. Download or clone this repository to desired location
  2. Reference files of this SDK in your project. Absolute path should be prefered.

Testing

  1. Execute the file:
    • If you are install manually, please execute 'trackingmore/trackingmore-sdk-php/examples/testing.php' on your browser.
    • If you are install by composer, please execute 'vendor/trackingmore/trackingmore-sdk-php/examples/testing.php' on your browser.
  2. Insert your TrackingMore API Key. How to generate TrackingMore API Key
  3. Click the request all button or the button of the represented request.

Error handling

Simply add a try-catch block

Couriers

Return a list of all supported couriers.

https://api.trackingmore.com/v4/couriers/all

Return a list of matched couriers based on submitted tracking number.

https://api.trackingmore.com/v4/couriers/detect

Trackings

Create a tracking.

https://api.trackingmore.com/v4/trackings/create

Get tracking results of multiple trackings.

https://api.trackingmore.com/v4/trackings/get

Create multiple trackings (Max. 40 tracking numbers create in one call).

https://api.trackingmore.com/v4/trackings/batch

Update a tracking by ID.

https://api.trackingmore.com/v4/trackings/update/{id}

Delete a tracking by ID.

https://api.trackingmore.com/v4/trackings/delete/{id}

Retrack expired tracking by ID.

https://api.trackingmore.com/v4/trackings/retrack/{id}

Air Waybill

Create an air waybill.

https://api.trackingmore.com/v4/awb

Response Code

Trackingmore uses conventional HTTP response codes to indicate success or failure of an API request. In general, codes in the 2xx range indicate success, codes in the 4xx range indicate an error that resulted from the provided information (e.g. a required parameter was missing, a charge failed, etc.), and codes in the 5xx range indicate an TrackingMore's server error.

Http CODE META CODE TYPE MESSAGE
200 200 Success Request response is successful
400 400 BadRequest Request type error. Please check the API documentation for the request type of this API.
400 4101 BadRequest Tracking No. already exists.
400 4102 BadRequest Tracking No. no exists. Please use 「Create a tracking」 API first to create shipment.
400 4103 BadRequest You have exceeded the shipment quantity of API call. The maximum quantity is 40 shipments per call.
400 4110 BadRequest The value of tracking_number is invalid.
400 4111 BadRequest Tracking_number is required.
400 4112 BadRequest Invalid Tracking ID.
400 4113 BadRequest Retrack is not allowed. You can only retrack an expired tracking.
400 4120 BadRequest The value of courier_code is invalid.
400 4121 BadRequest Cannot detect courier.
400 4122 BadRequest Missing or invalid value of the special required fields for this courier.
400 4130 BadRequest The format of Field name is invalid.
400 4160 BadRequest The awb_number is required or invaild format.
400 4161 BadRequest The awb airline does not support yet.
400 4190 BadRequest You are reaching the maximum quota limitation, please upgrade your current plan.
401 401 Unauthorized Authentication failed or has no permission. Please check and ensure your API Key is correct.
403 403 Forbidden Access prohibited. The request has been refused or access is not allowed.
404 404 NotFound Page does not exist. Please check and ensure your link is correct.
429 429 TooManyRequests Exceeded API request limits, please try again later. Please check the API documentation for the limit of this API.
500 511 ServerError Server error. Please contact us: [email protected].
500 512 ServerError Server error. Please contact us: [email protected].
500 513 ServerError Server error. Please contact us: [email protected].

All versions of trackingmore-sdk-php with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package trackingmore/trackingmore-sdk-php contains the following files

Loading the files please wait ....