PHPackages                             flydreamers/shipwire-api - 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. flydreamers/shipwire-api

ActiveLibrary[API Development](/categories/api)

flydreamers/shipwire-api
========================

Shipwire php integration

v0.2.5(9y ago)86.6k6[2 PRs](https://github.com/flydreamers/shipwire-api/pulls)MITPHP

Since Dec 16Pushed 3y ago4 watchersCompare

[ Source](https://github.com/flydreamers/shipwire-api)[ Packagist](https://packagist.org/packages/flydreamers/shipwire-api)[ RSS](/packages/flydreamers-shipwire-api/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (7)Versions (9)Used By (0)

shipwire-api
============

[](#shipwire-api)

These library will help you with the usage of Shipwire API.

[![Latest Stable Version](https://camo.githubusercontent.com/f525b2f0ea99c015eb3b79962ad823412d1c1dcc7ec6a173ba06518c2ded6cf4/68747470733a2f2f706f7365722e707567782e6f72672f666c79647265616d6572732f73686970776972652d6170692f762f737461626c652e737667)](https://packagist.org/packages/flydreamers/shipwire-api)[![Total Downloads](https://camo.githubusercontent.com/94a7951b3051cf97eaebdc53fc6e6625908ce4b755d4b4ce4be62d5a265b94c8/68747470733a2f2f706f7365722e707567782e6f72672f666c79647265616d6572732f73686970776972652d6170692f646f776e6c6f6164732e737667)](https://packagist.org/packages/flydreamers/shipwire-api)[![Latest Unstable Version](https://camo.githubusercontent.com/4dbcb0b78a7949fc3516d888b07d898c7ccaec0302f3f43a4e62c15f7cfdc298/68747470733a2f2f706f7365722e707567782e6f72672f666c79647265616d6572732f73686970776972652d6170692f762f756e737461626c652e737667)](https://packagist.org/packages/flydreamers/shipwire-api)[![License](https://camo.githubusercontent.com/f8a835e0013ebab8b3336265b99dcd274197d322bf3fa720f60a5476e0fdc311/68747470733a2f2f706f7365722e707567782e6f72672f666c79647265616d6572732f73686970776972652d6170692f6c6963656e73652e737667)](https://packagist.org/packages/flydreamers/shipwire-api)

Installing via Composer
-----------------------

[](#installing-via-composer)

The recommended way to install Shipwire-API is through [Composer](http://getcomposer.org).

```
# Install Composer
curl -sS https://getcomposer.org/installer | php
```

Next, run the Composer command to install the latest stable version of Shipwire-API:

```
composer require flydreamers/shipwire-api
```

After installing, you need to require Composer's autoloader:

```
require 'vendor/autoload.php';
```

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

[](#documentation)

### Initial configuration

[](#initial-configuration)

To configure the library just call ShipwireConnector::init() function to and start using it.

To use it you only have to configure your username and password in The clientyour config-local file like this:

```
ShipwireConnector::init($config['username'], $config['password'], 'sandbox');
```

### Stock

[](#stock)

To check for Stock of a product:

```
$response = $stock->getStockBySKUs(['CAPTRACKERBLUE']);
```

If you have more than one SKU, just add them to the array like:

```
$response = $stock->getStockBySKUs(['CAPTRACKERBLUE', 'CAPTRACKERRED', 'ETCETERA']);
```

Extra parameters can be used. See \\flydreamers\\shipwire\\Stock for more information.

### Rates

[](#rates)

You can ask Shipwire API for a shipping rate using Rate class.

```
$rate = new Rate;
$options = [
    "currency" => "USD",
    "groupBy" => "all",
    "canSplit" => 1,
    "warehouseArea" => "US"
];

$address = Address::createFromArray([
    "address1" => "6501 Railroad Avenue SE",
    "address2" => "Room 315",
    "address3" => "",
    "city" => "Snoqualmie",
    "postalCode" => "85283",
    "region" => "WA",
    "country" => "US",
    "isCommercial" => 0,
    "isPoBox" => 0
]);

$items = [
    ['sku' => 'CAPTRACKERBLUE', 'quantity' => 3]
];

$shippingInfo = $rate->quote($address, $items, $options);
```

### Orders

[](#orders)

```
$order = new \flydreamers\shipwire\Order();
```

**TBD**

\##Issues and Feature Requests

If you have issues to report, or issues to request, use the issue tracker in Github.

\##Contributing

Currently, the library isn't very feature rich or mature. If you'd like to offer improvements:

1. Fork it
2. Create your feature branch `git checkout -b feature-name`
3. Commit your changes `git commit -am 'Add feature'` \*
4. Push the branch `git push origin feature-name`
5. Create a pull request

\##Contact

Have a question? I'm on twitter: [@sebathi](https://twitter.com/sebathi)

\##License

[MIT](License)

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

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

Every ~89 days

Recently: every ~156 days

Total

8

Last Release

3540d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1c3a0462245d934abade3431e691825a45ab98c97270910ade5b8d79c4ffb729?d=identicon)[sebathi](/maintainers/sebathi)

![](https://www.gravatar.com/avatar/47d3963418f22e1581e5fa39841346ad358bf9619b83dd28b56384e9167a99bb?d=identicon)[nicosavini](/maintainers/nicosavini)

---

Top Contributors

[![simoheinonen](https://avatars.githubusercontent.com/u/3840367?v=4)](https://github.com/simoheinonen "simoheinonen (14 commits)")[![sebathi](https://avatars.githubusercontent.com/u/1434034?v=4)](https://github.com/sebathi "sebathi (4 commits)")

###  Code Quality

TestsCodeception

### Embed Badge

![Health badge](/badges/flydreamers-shipwire-api/health.svg)

```
[![Health](https://phpackages.com/badges/flydreamers-shipwire-api/health.svg)](https://phpackages.com/packages/flydreamers-shipwire-api)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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