saintsweeto/hunterio
Composer 安装命令:
composer require saintsweeto/hunterio
包简介
A PHP wrapper for Hunter.io v2 API
README 文档
README
A PHP wrapper for Hunter v2 API.
Getting Started
Initialization
use Hiraya\Hunter;
$hunter = new Hunter();
API Calls
Domain Search
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]);
Email Finder
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');
Email Verifier
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('info@hirayasolutions.co.nz');
Email Count
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');
Account Information
This API Call enables you to get information regarding your Hunter account at any time. This call is free.
$hunter->displayAccount();
List all your leads
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();
Get a lead
Retrieves all the fields of a lead.
$hunter->getLead(100128);
Create a lead
Creates a new lead. The parameters must be passed as a JSON hash.
$hunter->createLead([
'email' => 'info@hirayasolutions.co.nz',
'first_name' => 'EJ',
'last_name' => 'Ramos',
'company' => 'Hiraya Solutions',
]);
Update a lead
Updates an existing lead. The updated values must be passed as a JSON hash.
$hunter->updateLead(100128, [
'email' => 'info@hirayasolutions.co.nz',
'first_name' => 'EJ',
'last_name' => 'Ramos',
'company' => 'Hiraya Solutions',
]);
Delete a lead
Deletes an existing lead.
$hunter->deleteLead(100128);
API Reference
saintsweeto/hunterio 适用场景与选型建议
saintsweeto/hunterio 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 6.19k 次下载、GitHub Stars 达 2, 最近一次更新时间为 2017 年 10 月 18 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「hunter.io」 「hunter-php」 「hunter-sdk」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 saintsweeto/hunterio 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 saintsweeto/hunterio 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 6.19k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 7
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-10-18