credibility/dandb-laravel

Laravel Wrapper for DandB REST API

v1.0.3 2015-08-26 22:32 UTC

README

Coverage Status Build Status Packagist

Dun and Bradstreet Emerging Business API Client for Laravel based on credibility/dandb.

Installation

Using composer:

"require": {
  "credibility/dandb-laravel": "dev-master"
}

Then, in config/app.php, add the following to the service providers array.

array(
   ...
  'Credibility\DandB\Providers\DandBServiceProvider',
)

Configs

Run php artisan config:publish credibility/dandb-laravel to publish your config file. Usage instructions are inside the file.

Usage

To use within the application, call App::make('dandb') or if you have an instance of the Illuminate/Foundation/Application, $app->make('dandb')

From there, the returned object will allow you to call methods within the credibility/dandb class. These calls will automatically be cached using the Laravel Cache abstraction.