kcabading/laravel-lob

There is no license information available for the latest version (dev-master) of this package.

Laravel package for the Lob.com API created by Up Web Design

dev-master 2016-04-15 07:52 UTC

This package is not auto-updated.

Last update: 2024-04-19 16:04:31 UTC


README

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'
])