PHPackages                             truckhub/ch-robinson-php-sdk - 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. truckhub/ch-robinson-php-sdk

ActiveLibrary

truckhub/ch-robinson-php-sdk
============================

PHP SDK for C.H. Robinson API

06362PHPCI failing

Since Dec 23Pushed 6y ago2 watchersCompare

[ Source](https://github.com/mytruckhub/CH-Robinson-PHP-SDK)[ Packagist](https://packagist.org/packages/truckhub/ch-robinson-php-sdk)[ RSS](/packages/truckhub-ch-robinson-php-sdk/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

CH Robinson PHP SDK
===================

[](#ch-robinson-php-sdk)

[![Image description](https://github.com/mytruckhub/CH-Robinson-PHP-SDK/raw/master/CHRobinson-Banner.jpg)](https://github.com/mytruckhub/CH-Robinson-PHP-SDK/blob/master/CHRobinson-Banner.jpg)

This repository contains the C.H Robinson SDK and samples for the Shipments API. It includes a simplified interface to only provide simple model objects and blueprints for HTTP calls. Refer to the [C.H Robinson Developer](https://www.google.com) portal for more information.

Prerequisites
-------------

[](#prerequisites)

PHP 7 and above

Usage
-----

[](#usage)

### Install

[](#install)

```
composer require truckhub/ch-robinson-php-sdk
```

### Setting up credentials

[](#setting-up-credentials)

Obtain your Sandbox Client ID and Client Secret from C.H Robinson.

```
use CHRobinson\Core\CHRobinsonHttpClient;
use CHRobinson\Core\SandboxEnvironment;

$client = new CHRobinsonHttpClient(new SandboxEnvironment(
    getenv('SANDBOX_CLIENT_ID'),
    getenv('SANDBOX_CLIENT_SECRET')
));
```

Examples
--------

[](#examples)

### Sending a Milestone update with the Shipments API

[](#sending-a-milestone-update-with-the-shipments-api)

```
use CHRobinson\Shipments\MilestoneUpdates;

$request = new MilestoneUpdates;
$request->body = [
    'eventCode' => 'X6',
    'shipmentIdentifier' => [
        'shipmentNumber' => '123456789'
    ],
    'dateTime' => [
        'eventDateTime' => '2019-12-16T18:36:13.131Z'
    ],
    'location' => [
        'address' => [
            'address1' => 'address if known, or blank',
            'city' => 'state if known, or blank',
            'stateProvinceCode' => 'state if known, or blank',
            'country' => 'US',
            'latitude' => '31.717096',
            'longitude' => '-99.132553'
        ]
    ]
];

$response = $client->execute($request);

if ($response->getStatusCode() == 201) {
    echo 'Success';
}
```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/81262928?v=4)[MyTruckHub](/maintainers/MyTruckHub)[@mytruckhub](https://github.com/mytruckhub)

---

Top Contributors

[![TechhDan](https://avatars.githubusercontent.com/u/11691784?v=4)](https://github.com/TechhDan "TechhDan (32 commits)")

### Embed Badge

![Health badge](/badges/truckhub-ch-robinson-php-sdk/health.svg)

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

PHPackages © 2026

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