PHPackages                             dakota-dri/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. [API Development](/categories/api)
4. /
5. dakota-dri/ch-robinson-php-sdk

ActiveLibrary[API Development](/categories/api)

dakota-dri/ch-robinson-php-sdk
==============================

PHP SDK for C.H. Robinson API

04PHP

Since Jul 16Pushed 9mo agoCompare

[ Source](https://github.com/dakota-dri/CH-Robinson-PHP-SDK)[ Packagist](https://packagist.org/packages/dakota-dri/ch-robinson-php-sdk)[ RSS](/packages/dakota-dri-ch-robinson-php-sdk/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)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

17

—

LowBetter than 6% of packages

Maintenance40

Moderate activity, may be stable

Popularity3

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity16

Early-stage or recently created project

 Bus Factor1

Top contributor holds 88.9% 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://www.gravatar.com/avatar/9cbcadb7f7f5c840cfc23e1c61edd310ded250b60e52c2b426200ff9a09c04e4?d=identicon)[dakota-dri](/maintainers/dakota-dri)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M271](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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