samkitano/kbox
Composer 安装命令:
composer require samkitano/kbox
包简介
An implementation of kickbox.io email validation api for Laravel
README 文档
README
Kickbox is an Email Verification Library for PHP
According to kickbox-php:
Kickbox determines if an email address is not only valid, but associated with a actual user. Uses include:
* Preventing users from creating accounts on your applications using fake, misspelled, or throw-away email addresses.
* Reducing bounces by removing old, invalid, and low quality email addresses from your mailing lists.
* Saving money and projecting your reputation by only sending to real email users.
## Getting Started
To begin, hop over to [kickbox.io] and create a free account. Once you've signed up and logged in, click on **API Settings** and then click **Add API Key**. Take note of the generated API Key - you'll need it to setup the client as explained below.
## Bug Reports
Report [here](https://github.com/kickboxio/kickbox-php/issues).
## Need Help?
help@kickbox.io
Installation
Add the following to your composer.json
{ "require": { "samkitano/kbox": "dev-master" } }
Update your dependencies
$ php composer.phar update
Open app/config/app.php, and add a new item to the providers array:
'Samkitano\Kbox\KboxServiceProvider',
Publish your configuration file:
php artisan config:publish samkitano/kbox
Edit app/config/packages/samkitano/kbox/config.php and provide your API key:
'kickbox_api_key' => 'paste your kickbox api key here',
Versions
Works with Laravel [ 4.2 ]
Usage
$response = Kbox::verify('email@example.com');
Response information (from kickbox.io)
A successful API call responds with the following values:
- result
string- The verification result:valid,invalid,unknown - reason
string- The reason for the result. Possible reasons are:invalid_email- Specified email is not a valid email address syntaxinvalid_domain- Domain for email does not existrejected_email- Email address was rejected by the SMTP server, email address does not existaccepted_email- Email address was accepted by the SMTP serverno_connect- Could not connect to SMTP servertimeout- SMTP session timed outinvalid_smtp- SMTP server returned an unexpected/invalid responseunavailable_smtp- SMTP server was unavailable to process our requestunexpected_error- An unexpected error has occurred
- role
true | false- true if the email address is a role address (postmaster@example.com,support@example.com, etc) - free
true | false- true if the email address uses a free email service like gmail.com or yahoo.com. - disposable
true | false- true if the email address uses a disposable domain like trashmail.com or mailinator.com. - accept_all
true | false- true if the email was accepted, but the domain appears to accept all emails addressed to that domain. - did_you_mean
null | string- Returns a suggested email if a possible spelling error was detected. (bill.lumbergh@gamil.com->bill.lumbergh@gmail.com) - sendex
float- A quality score of the provided email address ranging between 0 (no quality) and 1 (perfect quality). More information on the Sendex Score can be found here. - email
string- Returns a normalized version of the provided email address. (BoB@example.com->bob@example.com - user
string- The user (a.k.a local part) of the provided email address. (bob@example.com->bob) - domain
string- The domain of the provided email address. (bob@example.com->example.com) - success
true | false- true if the API request was successful (i.e., no authentication or unexpected errors occured)
License
MIT
samkitano/kbox 适用场景与选型建议
samkitano/kbox 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 210 次下载、GitHub Stars 达 1, 最近一次更新时间为 2015 年 01 月 23 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「laravel」 「kickbox」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 samkitano/kbox 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 samkitano/kbox 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 samkitano/kbox 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Official kickbox API library client for PHP
A kickbox email validator for form requests in laravel
Symfony Kickbox Bundle
Zend Framework 2 Module that provides email validation via http://kickbox.io
Alfabank REST API integration
A kickbox email validator for form requests in laravel (forked from 'stayum')
统计信息
- 总下载量: 210
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 21
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-01-23