PHPackages                             bmartus/laravel-shippo - 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. bmartus/laravel-shippo

ActiveLibrary

bmartus/laravel-shippo
======================

Shippo for Laravel 5

1312.7k4[2 issues](https://github.com/bmartus/laravel-shippo/issues)PHP

Since May 25Pushed 9y ago1 watchersCompare

[ Source](https://github.com/bmartus/laravel-shippo)[ Packagist](https://packagist.org/packages/bmartus/laravel-shippo)[ RSS](/packages/bmartus-laravel-shippo/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Shippo for Laravel 5.2
======================

[](#shippo-for-laravel-52)

Integrates the Shippo PHP library with Laravel 5.2 via a ServiceProvider.

### Installation

[](#installation)

Include laravel-shippo as a dependency in composer.json:

```
"bmartus/laravel-shippo": "dev-master"

```

Run `composer install` to download the dependency.

Add the ServiceProvider to your provider array within `app/config/app.php`:

```
'providers' => [
    ...
    Bmartus\LaravelShippo\LaravelShippoServiceProvider::class,
]

```

### Configuration

[](#configuration)

Add the following to your `.env` file:

```
SHIPPO_API_KEY=key_from_shippo

```

### Usage

[](#usage)

You may use the [Shippo PHP Library](https://github.com/goshippo/shippo-php-client) as normal within your application. The Shippo API will automatically be configured with your API Key, so you do not need to set it yourself.

### Example

[](#example)

A quick example in `routes.php`:

```
