credibility / dandb
PHP Wrapper for Dun & Bradstreet Emerging Business API
Installs: 17 701
Dependents: 1
Suggesters: 0
Security: 0
Stars: 2
Watchers: 8
Forks: 2
Open Issues: 0
Requires
- php: >=5.4.0
- guzzlehttp/guzzle: ~5.0
Requires (Dev)
- mockery/mockery: dev-master
- phpunit/phpunit: 4.0.*
- satooshi/php-coveralls: 1.0.1
- dev-master
- v1.0.24
- v1.0.23
- v1.0.22
- v1.0.21
- v1.0.20
- v1.0.19
- v1.0.18
- v1.0.17
- v1.0.16
- v1.0.15
- v1.0.14
- v1.0.13
- v1.0.12
- v1.0.10
- v1.0.9
- v1.0.8
- v1.0.7
- v1.0.6
- v1.0.5
- v1.0.4
- v1.0.3
- v1.0.2
- v1.0.1
- v1.0.0
- 0.x-dev
- v0.2.1
- v0.2.0
- v0.1.0
- dev-WAC-1030
- dev-cms
- dev-BIZDIR-142-verified
- dev-manhattan
- dev-getuserdetails
- dev-logout
- dev-update-register
- dev-add-dandb-tests
- dev-user-functions
- dev-userUsingToken
- dev-cache
- dev-dev
This package is not auto-updated.
Last update: 2024-10-26 16:43:55 UTC
README
PHP Wrapper for the Dun & Bradstreet Emerging Business RESTful API
To use with Laravel, see credibility/dandb-laravel
Installation
Install using composer:
"require": {
"credibility/dandb": "dev-master"
}
Usage
See below for sample initialization code:
<?php
include_once 'vendor/autoload.php';
// See Doc Comments for parameters
$dandb = DandB::getInstance('https://api.dandb.com', '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()) {
print_r($response->getResponseData());
} else {
print_r($response->getErrors());
}
?>
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.