kcabading/laravel-lob

Laravel package for the Lob.com API created by Up Web Design
13 1
Install
composer require kcabading/laravel-lob
PHP:>=5.3.0
Last Updated:Apr 15, 2016
Links: GitHub  ·  Packagist
Maintainer: kcabading

Lob Package for Laravel 4

Laravel Facade and Service Provider for Lob\Lob.

This is a copy of this package https://github.com/upwebdesign/laravel-lob which is no longer available in https://packagist.org

Installation

To use, simply install the package via Composer

Add this to your composer.json file "kcabading/laravel-lob": "dev-master" and run composer update.

Then add the following to your app/config/app.php to the service providers array:

'Upwebdesign\Lob\LobServiceProvider',

Then add to the aliases array the following:

'Lob' => 'Upwebdesign\Lob\Facade',

Publish config file via php artisan config:publish kcabading/laravel-lob.

Usage

You will now have access to the lob-php classes and methods to make your API calls

Lob::addresses()->verify([
    'address_line1' => '1234 Sample Address',
    'address_line2' => '',
    'address_city' => 'San Francisco',
    'address_state' => 'CA',
    'address_zip' => '',
    'address_country' => 'US'
])