PHPackages                             rams007/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. rams007/shippo-php

ActiveLibrary

rams007/shippo-php
==================

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

1.0.0(1y ago)022MITPHPPHP &gt;=7.3

Since Dec 10Pushed 1y agoCompare

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

READMEChangelogDependencies (1)Versions (2)Used By (0)

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

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

---

⚠️ **Shippo no longer actively maintains this library**
However, you can use it as a starting point and update it for your needs and future changes to our APIs.
You can use our [Open API Specification](https://docs.goshippo.com/shippoapi/public-api/) to build your own library using tools like the [OpenAPI Generator](https://openapi-generator.tech/) and [Swagger Codegen](https://swagger.io/tools/swagger-codegen/).

---

[![Build Status](https://camo.githubusercontent.com/d25d5df9512f99f4f5622640868140a59ab60ad4c5e0d24c67dea931cc6df626/68747470733a2f2f7472617669732d63692e6f72672f676f73686970706f2f73686970706f2d7068702d636c69656e742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/goshippo/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 5.6 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/)
- Create/append the following to your `composer.json` file

    ```
      {
        "require": {
          "rams007/shippo-php": "1.*"
        }
      }

    ```
- Install via:

    ```
      composer.phar install

    ```
- To use the bindings, either user Composer's autoload:

    ```
      require_once('vendor/autoload.php');

    ```

    Or manually:

    ```
      require_once('/path/to/vendor/shippo/shippo-php/lib/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:

```
\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($this->app['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:

```
    // Replace  with your Shippo API Key
    Shippo::setApiKey("");
    $address = Shippo_Address::
        create(
            array(
                 '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);
```

We've created a number of examples to cover the most common use cases. You can find the sample code files in the [examples folder](examples/). Some of the use cases we covered include:

- [Basic domestic shipment](examples/basic-shipment.php)
- [International shipment](examples/international-shipment.php) - Custom forms, interntational destinations
- [Price estimation matrix](examples/estimate-shipping-prices.php)
- [Retrieve rates, filter by delivery time and purchase cheapest label](examples/filter-by-delivery-time.php)
- [Retrieve rates, purchase label for fastest delivery option](examples/purchase-fastest-service.php)
- [Retrieve rates so customer can pick preferred shipping method, purchase label](examples/get-rates-to-show-customer.php)

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

25

—

LowBetter than 40% of packages

Maintenance42

Moderate activity, may be stable

Popularity6

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

466d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0fbab24ebd125ae80ff2ec32355d4493d81b67978055c086982187bf1d92f2eb?d=identicon)[rams007](/maintainers/rams007)

---

Top Contributors

[![sbeidas](https://avatars.githubusercontent.com/u/1486681?v=4)](https://github.com/sbeidas "sbeidas (17 commits)")[![guozhen-la](https://avatars.githubusercontent.com/u/68618788?v=4)](https://github.com/guozhen-la "guozhen-la (9 commits)")[![mylifeisshan](https://avatars.githubusercontent.com/u/6700556?v=4)](https://github.com/mylifeisshan "mylifeisshan (9 commits)")[![mootrichard](https://avatars.githubusercontent.com/u/4452079?v=4)](https://github.com/mootrichard "mootrichard (8 commits)")[![jkozlowicz](https://avatars.githubusercontent.com/u/4753742?v=4)](https://github.com/jkozlowicz "jkozlowicz (8 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)")[![ThiagoRRamos](https://avatars.githubusercontent.com/u/1767480?v=4)](https://github.com/ThiagoRRamos "ThiagoRRamos (1 commits)")

---

Tags

addresstrackingshippinguspsdhlupsFedExUbershyp

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[shippo/shippo-php

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

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

PHP UPS API

4562.3M10](/packages/gabrielbull-ups-api)[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.

9737.5k](/packages/sauladam-shipment-tracker)[gavroche/ups-api

PHP UPS API

45613.1k](/packages/gavroche-ups-api)[ivanmitrikeski/laravel-shipping

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

203.1k1](/packages/ivanmitrikeski-laravel-shipping)[pdt256/shipping

Shipping Rate API

1814.5k](/packages/pdt256-shipping)

PHPackages © 2026

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