PHPackages                             eduardlleshi/ch-robinson-laravel - 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. eduardlleshi/ch-robinson-laravel

ActiveLibrary[API Development](/categories/api)

eduardlleshi/ch-robinson-laravel
================================

PHP SDK for C.H. Robinson API

v0.9.1(6y ago)0339MITPHP

Since Mar 28Pushed 6y agoCompare

[ Source](https://github.com/eduardlleshi/CH-Robinson-Laravel)[ Packagist](https://packagist.org/packages/eduardlleshi/ch-robinson-laravel)[ RSS](/packages/eduardlleshi-ch-robinson-laravel/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (3)Versions (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';
}
```

To work locally with the package (package development)

```
"repositories": [
    {
        "type": "path",
        "url": "chrobinson"
    }
],

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

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

Unknown

Total

1

Last Release

2237d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/80ad0ac5fc81d88db03e97eb771517ddcd4374028a236de62d2e17da79c6db19?d=identicon)[eduardlleshi](/maintainers/eduardlleshi)

---

Top Contributors

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

---

Tags

sdkch robinson

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/eduardlleshi-ch-robinson-laravel/health.svg)

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

###  Alternatives

[appwilio/cdek-sdk

CDEK API SDK (cdek.ru)

406.5k](/packages/appwilio-cdek-sdk)[mocking-magician/coinbase-pro-sdk

Library for coinbase pro API calls

223.2k](/packages/mocking-magician-coinbase-pro-sdk)

PHPackages © 2026

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