kcabading / laravel-lob
Laravel package for the Lob.com API created by Up Web Design
Requires
- php: >=5.3.0
- laravel/framework: 4.*
- lob/lob-php: 1.4.x
Requires (Dev)
- phpunit/phpunit: 3.7.*
This package is not auto-updated.
Last update: 2025-01-24 19:49:04 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' ])