Skip to content

upwebdesign/laravel-lob

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Lob Package for Laravel

Laravel Facade and Service Provider for Lob\Lob

Installation

To use, simply install the package via Composer and 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 upwebdesign/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'
])