PHP Wrapper for Dun & Bradstreet Credibility Corp. API


Build Status Coverage Status Packagist

PHP Wrapper for the Dun & Bradstreet Emerging Business RESTful API

To use with Laravel, see credibility/dandb-laravel


Install using composer:

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


See below for sample initialization code:


include_once 'vendor/autoload.php';

// See Doc Comments for parameters
$dandb = DandB::getInstance('', 'client-id', 'client-secret', array());

//From here, you can use the $dandb object to make requests. See PHP Doc comments in the class for info on how to use.

$response = $dandb->businessSearchByDuns('123456789');

if($response->isValid()) {
} else {


Note: each request has an optional access token parameter. This allows you to cache an access token on your own and then pass it into each request. Otherwise the DandB object will make a request to get an access token before the actual call.