This module provides a simple wrapper for the Checkr service.
Install the module using Composer into your application's vendor directory. Add the following line to your
composer.json
.
{
"require": {
"aronkerr/checkr": "dev-master"
}
}
None at this point
You can get the Checkr class from anywhere anywhere in your application (e.g. controller classes). The following example instantiates the Checkr class.
use AronKerr\Checkr\Checkr;
public function indexAction()
{
$checkr = new Checkr('xxxxxxx'); // Replace with your API key
}
use AronKerr\Checkr\Checkr;
public function indexAction()
{
$checkr = new Checkr('xxxxxxx'); // Replace with your API key
$parameters = new Parameters(array(
'first_name' => 'Bob',
'last_name' => 'Jones',
'email' => 'bob@gmail.com',
'phone' => '123-456-7890',
'zipcode' => '97222',
'copy_requested' => 'false',
'dob' => '1986-12-08'
));
$response = $checkr->createCandidate($parameters);
}