PHPackages                             ajohnson6494/shippo-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. [HTTP &amp; Networking](/categories/http)
4. /
5. ajohnson6494/shippo-php

ActiveLibrary[HTTP &amp; Networking](/categories/http)

ajohnson6494/shippo-php
=======================

A PHP library for connecting with multiple carriers (FedEx, UPS, USPS) using Shippo.

v3.0.0(1y ago)02.1k↓50%MITPHPPHP ^8.3CI passing

Since Apr 29Pushed 1y agoCompare

[ Source](https://github.com/ajohnson6494/shippo-php-client)[ Packagist](https://packagist.org/packages/ajohnson6494/shippo-php)[ Docs](https://goshippo.com/)[ RSS](/packages/ajohnson6494-shippo-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (2)Versions (4)Used By (0)

Shippo PHP API wrapper
======================

[](#shippo-php-api-wrapper)

[![Build Status](https://camo.githubusercontent.com/a100518327f4b389be61a2c5c68b5425ab021db5e4ee86f90ff8b6a2eb267c1e/68747470733a2f2f7472617669732d63692e6f72672f616a6f686e736f6e363439342f73686970706f2d7068702d636c69656e742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ajohnson6494/shippo-php-client)

Shippo is a shipping API that connects you with [multiple shipping carriers](https://goshippo.com/carriers/) (such as USPS, UPS, DHL, Canada Post, Australia Post, UberRUSH and many others) through one interface.

Print a shipping label in 10 mins using our default USPS and DHL Express accounts. No need to register for a carrier account to get started.

Requirements
------------

[](#requirements)

- PHP 8.3 or later.
- [Shippo account](https://goshippo.com/) - free to sign up, free to use the API. Only pay to print a live label, test labels are free.

Installation
------------

[](#installation)

### Installing using Composer

[](#installing-using-composer)

- [Get Composer](http://getcomposer.org/)
- Install via: `composer require ajohnson6494/shippo-php`

### Installing using Laravel

[](#installing-using-laravel)

In Laravel you can install the library as normal. Then within you `app/Providers/AppServiceProvider.php` file's `boot()` method add the following:

```
use Shippo\Shippo;

Shippo::setApiKey(env('SHIPPO_API_KEY'));
```

To take advantage of configuration caching, you can set a config parameter in `config/services.php` and retrieve your API key through the configuration.

```
Shippo::setApiKey(config('services.shippo.key'));
```

From here you can use the Shippo library anywhere in your application without setting the key when accessing it.

### Testing

[](#testing)

After installing the dependencies above, the test suite may be run: `./vendor/bin/phpunit`

You may also run individual tests: `./vendor/bin/phpunit AddressTest.php`

Getting Started
---------------

[](#getting-started)

Simple usage looks like:

```
  use Shippo\Shippo;
  use Shippo\Address;

  // Replace  with your Shippo API Key
  Shippo::setApiKey("");

  $address = Address::create([
    'object_purpose' => 'QUOTE',
    'name' => 'John Smith',
    'company' => 'Initech',
    'street1' => '6512 Greene Rd.',
    'city' => 'Woodridge',
    'state' => 'IL',
    'zip' => '60517',
    'country' => 'US',
    'phone' => '773 353 2345',
    'email' => 'jmercouris@iit.com',
    'metadata' => 'Customer ID 23424'
  ]);

  var_dump($address);
```

Documentation
-------------

[](#documentation)

Please see  for up-to-date documentation.

About Shippo
------------

[](#about-shippo)

Connect with multiple different carriers, get discounted shipping labels, track parcels, and much more with just one integration. You can use your own carrier accounts or take advantage of our discounted rates with the USPS and DHL Express. Using Shippo makes it easy to deal with multiple carrier integrations, rate shopping, tracking and other parts of the shipping workflow. We provide the API and dashboard for all your shipping needs.

Supported Features
------------------

[](#supported-features)

The Shippo API provides in depth support of carrier and shipping functionalities. Here are just some of the features we support through the API:

Supported Features
------------------

[](#supported-features-1)

The Shippo API provides in depth support of carrier and shipping functionalities. Here are just some of the features we support through the API:

- Shipping rates &amp; labels - [Docs](https://goshippo.com/docs/first-shipment)
- Tracking for any shipment with just the tracking number - [Docs](https://goshippo.com/docs/tracking)
- Batch label generation - [Docs](https://goshippo.com/docs/batch)
- Multi-piece shipments - [Docs](https://goshippo.com/docs/multipiece)
- Manifests and SCAN forms - [Docs](https://goshippo.com/docs/manifests)
- Customs declaration and commercial invoicing - [Docs](https://goshippo.com/docs/international)
- Address verification - [Docs](https://goshippo.com/docs/address-validation)
- Consolidator support including:
    - DHL eCommerce
    - UPS Mail Innovations
    - FedEx Smartpost
- Additional services: cash-on-delivery, certified mail, delivery confirmation, and more - [Docs](https://goshippo.com/docs/reference#shipment-extras)

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance48

Moderate activity, may be stable

Popularity20

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor4

4 contributors hold 50%+ of commits

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 ~0 days

Total

3

Last Release

384d ago

Major Versions

v2.0.2 → v3.0.02025-04-29

PHP version history (2 changes)v2.0.1PHP &gt;=7.3

v3.0.0PHP ^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/17084ad54e16e273b638275e6d4c13d77fc8bde5b6bb8a698e353c96ab8c3067?d=identicon)[ajohnson6494](/maintainers/ajohnson6494)

---

Top Contributors

[![sbeidas](https://avatars.githubusercontent.com/u/1486681?v=4)](https://github.com/sbeidas "sbeidas (17 commits)")[![mylifeisshan](https://avatars.githubusercontent.com/u/6700556?v=4)](https://github.com/mylifeisshan "mylifeisshan (9 commits)")[![guozhen-la](https://avatars.githubusercontent.com/u/68618788?v=4)](https://github.com/guozhen-la "guozhen-la (9 commits)")[![jkozlowicz](https://avatars.githubusercontent.com/u/4753742?v=4)](https://github.com/jkozlowicz "jkozlowicz (8 commits)")[![mootrichard](https://avatars.githubusercontent.com/u/4452079?v=4)](https://github.com/mootrichard "mootrichard (8 commits)")[![ajohnson6494](https://avatars.githubusercontent.com/u/5192820?v=4)](https://github.com/ajohnson6494 "ajohnson6494 (7 commits)")[![mikhaill](https://avatars.githubusercontent.com/u/1461603?v=4)](https://github.com/mikhaill "mikhaill (5 commits)")[![AdrianCollinsShippo](https://avatars.githubusercontent.com/u/118923416?v=4)](https://github.com/AdrianCollinsShippo "AdrianCollinsShippo (3 commits)")[![mnowik](https://avatars.githubusercontent.com/u/6100009?v=4)](https://github.com/mnowik "mnowik (3 commits)")[![wmichelin](https://avatars.githubusercontent.com/u/5488896?v=4)](https://github.com/wmichelin "wmichelin (2 commits)")[![honsremind](https://avatars.githubusercontent.com/u/10326509?v=4)](https://github.com/honsremind "honsremind (2 commits)")[![eduardojuarez](https://avatars.githubusercontent.com/u/7751197?v=4)](https://github.com/eduardojuarez "eduardojuarez (1 commits)")[![ZarlengoToptal](https://avatars.githubusercontent.com/u/85881377?v=4)](https://github.com/ZarlengoToptal "ZarlengoToptal (1 commits)")[![bryant1410](https://avatars.githubusercontent.com/u/3905501?v=4)](https://github.com/bryant1410 "bryant1410 (1 commits)")[![bosswissam](https://avatars.githubusercontent.com/u/1377465?v=4)](https://github.com/bosswissam "bosswissam (1 commits)")[![pennadl](https://avatars.githubusercontent.com/u/1318296?v=4)](https://github.com/pennadl "pennadl (1 commits)")[![jfriedr](https://avatars.githubusercontent.com/u/61479880?v=4)](https://github.com/jfriedr "jfriedr (1 commits)")[![robin-shippo](https://avatars.githubusercontent.com/u/29385708?v=4)](https://github.com/robin-shippo "robin-shippo (1 commits)")[![rummykhan](https://avatars.githubusercontent.com/u/12664104?v=4)](https://github.com/rummykhan "rummykhan (1 commits)")[![assislucas](https://avatars.githubusercontent.com/u/10120697?v=4)](https://github.com/assislucas "assislucas (1 commits)")

---

Tags

addresstrackingshippinguspsdhlupsFedExUbershyp

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/ajohnson6494-shippo-php/health.svg)

```
[![Health](https://phpackages.com/badges/ajohnson6494-shippo-php/health.svg)](https://phpackages.com/packages/ajohnson6494-shippo-php)
```

###  Alternatives

[shippo/shippo-php

A PHP library for connecting with multiple carriers (FedEx, UPS, USPS) using Shippo.

1711.8M2](/packages/shippo-shippo-php)[gabrielbull/ups-api

PHP UPS API

4642.4M10](/packages/gabrielbull-ups-api)[ivanmitrikeski/laravel-shipping

Shipping package for Laravel. Supported providers: CanadaPost, USPS, UPS, FedEx and Purolator.

206.8k2](/packages/ivanmitrikeski-laravel-shipping)[sauladam/shipment-tracker

Parses tracking information for several carriers, like UPS, USPS, DHL and GLS by simply scraping the data. No need for any kind of API access.

9738.8k](/packages/sauladam-shipment-tracker)[whatarmy/fedex-rest

New FedEx Rest API wrapper

2440.5k1](/packages/whatarmy-fedex-rest)[pdt256/shipping

Shipping Rate API

1814.6k](/packages/pdt256-shipping)

PHPackages © 2026

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