nickescobedo / microbilt-php
A PHP client for consuming the Microbilt web services API.
Installs: 4 545
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 4
Forks: 3
Open Issues: 1
Requires
- guzzlehttp/guzzle: ^6.3
Requires (Dev)
- mockery/mockery: ^1.2
- phpunit/phpunit: ^7.5
This package is auto-updated.
Last update: 2024-09-20 00:26:10 UTC
README
A PHP client for consuming the Microbilt web services API.
https://developer.microbilt.com
Installation
composer require nickescobedo/microbilt-php
Quick Start
$client = new \NickEscobedo\MicroBilt\Client([
'client_id' => '',
'client_secret' => '',
]);
$transUnionReport = $client->transUnion(['your data parameters here']);
Configuration
client_id
required
client_secret
required
mode
optional (defaults to live). Other option is sandbox.
Usage
See https://developer.microbilt.com for the necessary parameters to pass in to each function. Data should be passed in as an array. The array is converted to JSON before sending to their API.
$client = new \NickEscobedo\MicroBilt\Client([
'client_id' => '',
'client_secret' => '',
]);
// Data structure taken from https://developer.microbilt.com/transunion/apis/post/GetReport
$response = $client->transUnion([
"PersonInfo"=> [
"PersonName"=> [
"FirstName"=> '',
"LastName"=> '',
"MiddleName"=> '',
],
"ContactInfo"=> [
"PostAddr"=> [
"StreetNum"=> '',
"StreetName"=> '',
"City"=> '',
"StateProv"=> '',
"PostalCode"=> '',
]
],
"TINInfo"=> [
"TINType"=> '1',
"TaxId"=> '',
]
]
])