A PHP wrapper for Hunter v2 API.
use Hiraya\Hunter;
$hunter = new Hunter();
The Domain Search returns all the email addresses found using one given domain name, with sources.
$hunter->searchDomain('hirayasolutions.co.nz');
You can add optional parameters by passing an array
$hunter->searchDomain('hirayasolutions.co.nz', ['limit' => 20, 'offset' => 1]);
This API Call guesses the most likely email of a person using his/her first name, last name and a domain name
$hunter->findEmail('hirayasolutions.co.nz', 'EJ', 'Ramos');
This API Call checks the deliverability of a given email address, verifies if it has been found in our database, and returns their sources.
$hunter->verifyEmail('[email protected]');
This API Call allows you to know how many email addresses we have for one domain or for one company. It's free and doesn't require authentication.
$hunter->countEmail('hirayasolutions.co.nz');
This API Call enables you to get information regarding your Hunter account at any time. This call is free.
$hunter->displayAccount();
Returns all the leads already saved in your account. The leads are returned in sorted order, with the most recent leads appearing first.
$hunter->listLeads();
Retrieves all the fields of a lead.
$hunter->getLead(100128);
Creates a new lead. The parameters must be passed as a JSON hash.
$hunter->createLead([
'email' => '[email protected]',
'first_name' => 'EJ',
'last_name' => 'Ramos',
'company' => 'Hiraya Solutions',
]);
Updates an existing lead. The updated values must be passed as a JSON hash.
$hunter->updateLead(100128, [
'email' => '[email protected]',
'first_name' => 'EJ',
'last_name' => 'Ramos',
'company' => 'Hiraya Solutions',
]);
Deletes an existing lead.
$hunter->deleteLead(100128);