PHPackages                             seka19/tracking-sdk-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. seka19/tracking-sdk-php

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

seka19/tracking-sdk-php
=======================

Tracking PHP SDK

1.0.3(4y ago)01.1kMITPHPPHP &gt;=7.1

Since May 22Pushed 4y agoCompare

[ Source](https://github.com/seka19/tracking-sdk-php)[ Packagist](https://packagist.org/packages/seka19/tracking-sdk-php)[ RSS](/packages/seka19-tracking-sdk-php/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (6)DependenciesVersions (10)Used By (0)

Trackingmore-PHP
================

[](#trackingmore-php)

The PHP SDK of Trackingmore API

Official document
-----------------

[](#official-document)

[Document](https://www.trackingmore.com/v3/api-index)

\##Init

```
if (!defined("TRACKING_AUTOLOADER_PATH")) {
    define("TRACKING_AUTOLOADER_PATH", __DIR__);
}
require_once(__DIR__ . "/Autoloader.php");
use Tracking\Api;

# Pass api key parameter
$api = new Api('you api key');
```

Quick Start
-----------

[](#quick-start)

- Put your ApiKey in the constructor of the Api class
- All returns are in Json format.
- After instantiating the Api class, you can use its interface methods
- You can set the sandbox of the Api instance to true to turn on the sandbox mode: `$api->sandbox=true;`
- Most Api params receive multiple tracking numbers

**Get a list of the couriers in Trackingmore**

```
$response = $api->courier();

```

**Detect which couriers defined in your account match a tracking number**

```
$data = ['tracking_number': 'EA152563254CN']
$response = $api->detect($data);

```

**Post trackings to your account**

```
//Create single tracking numbers
$data = ["tracking_number" => "RP325552475CN", "carrier_code" => "china-post"];
//Create multiple tracking numbers
$data = [
    ["tracking_number" => "RP325552475CN", "carrier_code" => "china-post"],
    ["tracking_number" => "LZ448865302CN", "carrier_code" => "china-ems"],
];
$response =$api->create($data);

```

**Summary of Connection API Methods with all the api and Methods**

```
#sandbox model
$api->sandbox = true;
# Get a tracking number of real-time query result data
//$data = ["tracking_number" => "UB209300714LV", "carrier_code" => "cainiao"];
//$response = $api->realtime($data);

# archive
$data = ["tracking_number" => "RP325552475CN", "carrier_code" => "china-post"];
$response = $api->archive($data);

# Get a list of all carriers
$response = $api->courier();

# Create a tracking number
$data = ["tracking_number" => "RP325552475CN", "carrier_code" => "china-post"];
$response = $api->create($data);

# Create multiple tracking numbers
$data = [
["tracking_number" => "RP325552475CN", "carrier_code" => "china-post"],
["tracking_number" => "LZ448865302CN", "carrier_code" => "china-ems"],
];
$response =$api->create($data);
//
# Get logistics information for a tracking number
$response = $api->get("RP325552475CN","china-post");

# Get logistics information for multiple tracking numbers
$data = ["tracking_number" => "RP325552475CN,LZ448865302CN"];
$response = $api->get($data);

# Modify other information of a tracking number
$data = ['num'=>"RP325552475CN",'carrier_code'=>"china-post","order_id" => "#1234"];
$response = $api->modifyinfo($data);

# Modify the information of multiple tracking numbers
$data = [
["tracking_number" => "RP325552475CN", "carrier_code" => "china-post", "order_id" => "#1234",],
["tracking_number" => "LZ448865302CN", "carrier_code" => "china-ems", "order_id" => "#5678",],
];
$response =  $api->modifyinfo($data);

# Modify the carrier code of a tracking number
$data = ["tracking_number" => "RP325552475CN", "carrier_code" => "china-post", "new_carrier_code" => "china-ems"];
$response =  $api->modifyCourier($data);

# Delete a tracking number
$response = $api->delete("RP325552475CN","china-post");

# Delete multiple tracking numbers
$data = [
["tracking_number" => "RP325552475CN", "carrier_code" => "china-post"],
["tracking_number" => "LZ448865302CN", "carrier_code" => "china-ems"],
];
$response = $api->delete($data);

# Set multiple tracking numbers no longer update
$data = [
["tracking_number" => "RP325552475CN", "carrier_code" => "china-post"],
["tracking_number" => "LZ448865302CN", "carrier_code" => "china-ems"],
];
$response = $api->notUpdate($data);

# Get status statistics of tracking ticket number
$data = ["created_at_min" => time() - 3600 * 24 * 30, "created_at_max" => time()];
$response = $api->status($data);

# Get user information
$response =  $api->user();

# Query whether remote
$data = [
["country" => "Japan", "postcode" => "7621094"],
["country" => "NZ", "postcode" => "Papaaroha"],
];
$response = $api->remote($data);

# Get the timeliness of multiple carriers
$data = [
["original" => "CN", "destination" => "US", "carrier_code" => "dhl"],
["original" => "CN", "destination" => "RU", "carrier_code" => "dhl"],
];
$response = $api->transitTime($data);

```

Typical Server Responses
------------------------

[](#typical-server-responses)

We will respond with one of the following status codes.

CodeTypeMessage200`Success`Request response is successful203`PaymentRequired`API service is only available for paid account Please subscribe paid plan to unlock API services ul204`No Content`Request was successful, but no data returned Tracking NO. or target data possibly do not exist400`Bad Request`Request type error Please check the API documentation for the request type of this API401`Unauthorized`Authentication failed or has no permission Please check and ensure your API Key is correct403`Bad Request`Page does not exist Please check and ensure your link is correct ul404`Not Found`Page does not exist Please check and ensure your link is correct408`Time Out`Request timeout The official website did not return data, please try again later411`Bad Request`Specified request parameter length exceeds length limit Please check and ensure that the request parameters are of the required length412`Bad Request`Specified request parameter format doesn't meet requirements Please check and ensure that the request parameters are in the required format413`Out limited`The number of request parameters exceeds the limit Please check the API documentation for the limit of this API417`Bad Request`Missing request parameters or request parameters cannot be parsed Please check and ensure that the request parameters are complete and correctly formatted421`Bad Request`Some of required parameters are empty Some couriers need special parameters to track logistics information (Special Couriers)422`Bad Request`Unidentifiable courier code Please check and ensure that the courier code are correct(Courier code)423`Bad Request`Tracking No. already exists424`Bad Request`Tracking No. no exists Please use 「Create trckings」 API first to create trackings429`Bad Request`Exceeded API request limits, please try again later Please check the API documentation for the limit of this API511`Server Error`Server error Please contact us: .512`Server Error`Server error Please contact us: .513`Server Error`Server error Please contact us: .

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 64.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~99 days

Recently: every ~0 days

Total

7

Last Release

1590d ago

Major Versions

0.9.1 → 1.0.02022-01-06

1.0.2 → v3.x-dev2022-01-06

### Community

Maintainers

![](https://www.gravatar.com/avatar/b086717a3f91192a67a4d5ddad6154ec01a7120cf606d7b5e385c4167e0146b7?d=identicon)[Alexey Sinkevich](/maintainers/Alexey%20Sinkevich)

---

Top Contributors

[![trackingmore100](https://avatars.githubusercontent.com/u/63627223?v=4)](https://github.com/trackingmore100 "trackingmore100 (20 commits)")[![seka19](https://avatars.githubusercontent.com/u/2714877?v=4)](https://github.com/seka19 "seka19 (11 commits)")

### Embed Badge

![Health badge](/badges/seka19-tracking-sdk-php/health.svg)

```
[![Health](https://phpackages.com/badges/seka19-tracking-sdk-php/health.svg)](https://phpackages.com/packages/seka19-tracking-sdk-php)
```

###  Alternatives

[misterphilip/maintenance-mode

An enhanced drop-in replacement for Laravel's maintenance mode

120176.7k](/packages/misterphilip-maintenance-mode)[abhimanyusharma003/conversion

Laravel Unit Conversion

5160.4k1](/packages/abhimanyusharma003-conversion)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
