messerli90/hunterio
Composer 安装命令:
composer require messerli90/hunterio
包简介
Laravel wrapper to discover email addresses through the Hunter.io API
README 文档
README
Using this package you can easily query the Hunter.io API.
Here are some examples of the provided methods:
use Hunter; // Retrieve email addresses at a given domain Hunter::domainSearch('ghost.org') // Retrieve email addresses of people with a marketing title from ghost.org Hunter::domainSearch()->domain('ghost.org')->department('marketing')->get(); // Find an email address belonging to John Doe working at Ghost Hunter::emailFinder()->company('Ghost')->name('John Doe')->get();
Installation
Requires Laravel 8+ and PHP 7.4+
For Laravel 7 use
messerli90/hunter@1.1.0
You can install the package via composer:
composer require messerli90/hunterio
You'll need an API key from Hunter.io
Optionally, you can publish the config file of this package with this command:
php artisan vendor:publish --provider="Messerli90\Hunterio\HunterServiceProvider"
or, manually add it to your config/services.php file
[
...
'hunter' => [
'key' => env('HUNTER_API_KEY')
]
]
Usage
Read the Hunter.io API Documentation to check how to handle each endpoint's response.
Domain Search
Search all the email addresses corresponding to one website.
// Shortcut to search by domain Hunter::domainSearch('ghost.org') // Specify searching by company name or domain Hunter::domainSearch()->company('Ghost')->get(); Hunter::domainSearch()->domain('ghost.org')->get(); // Narrow your search by chaining attributes $query = Hunter::domainSearch()->company('Ghost')->domain('ghost.org') ->seniority(['senior', 'executive'])->department('marketing') ->limit(5)->skip(5)->type('personal') ->get();
Email Finder
This API endpoint generates or retrieves the most likely email address from a domain name, a first name and a last name.
// Shortcut assumes searching by domain Hunter::emailFinder('ghost.org')->name('John', 'Doe')->get(); // Search by first and last name Hunter::emailFinder()->domain('ghost.org')->name('John', 'Doe')->get(); // or use a single string to search by 'full name' Hunter::emailFinder()->company('Ghost')->name('John Doe')->get();
Email Count
This API endpoint 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.
This endpoint is public does not require an API key
// Passing argument assumes searching by domain Hunter::emailCount('ghost.org'); // Or specify domain or company name Hunter::emailCount()->company('Ghost')->get(); // Narrow search to only 'personal' addresses Hunter::emailCount()->domain('ghost.org')->type('personal')->get();
Email Verifier
This API endpoint allows you to verify the deliverability of an email address.
Hunter::verifyEmail('steli@close.io');
Account
This API endpoint enables you to get information regarding your Hunter account at any time.
Hunter::account();
Testing
./vendor/bin/phpunit
Roadmap
- Domain Search
- Email Finder
- Email Verifier
- Email Count
- Account Information
- Leads
- Leads List
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please tweet me at @michaelmesserli instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
messerli90/hunterio 适用场景与选型建议
messerli90/hunterio 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 300 次下载、GitHub Stars 达 4, 最近一次更新时间为 2020 年 06 月 24 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「api」 「email」 「wrapper」 「messerli90」 「hunterio」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 messerli90/hunterio 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 messerli90/hunterio 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 messerli90/hunterio 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
LinkedIn API PHP SDK with OAuth 2.0 & CSRF support. Can be used for social sign in or sharing on LinkedIn. Examples. Documentation.
LinkedIn API PHP SDK with OAuth 2.0 & CSRF support. Can be used for social sign in or sharing on LinkedIn. Examples. Documentation.
A PSR-7 compatible library for making CRUD API endpoints
Extensible library for building notifications and sending them via different delivery channels.
Email+ extends Kirby's email capabilities by adding support for multiple email services using the same Kirby email API.
gv config package
统计信息
- 总下载量: 300
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-06-24