nicolasbeauvais/botscout-client
最新稳定版本:1.0.1
Composer 安装命令:
composer require nicolasbeauvais/botscout-client
包简介
A PHP client library for botscout.com
README 文档
README
Protect your website against automated scripts using the botscout.com API.
Installation
You can install the package via composer:
composer require nicolasbeauvais/botscout-client
You also need an api key from botscout.com
Usage
You must pass a Guzzle client and an api key to the constructor of NicolasBeauvais\BotScout:
$client = new \GuzzleHttp\Client(); $botscout = new NicolasBeauvais\BotScout($client, 'api-key');
Multi
Test matches all parameters at once.
$response = $botscout->multi($name, $mail, $ip);
All
Test matches a single item against all fields in the botscout database.
$response = $botscout->all($name); $response = $botscout->all($email);
Name
Test matches a name.
$response = $botscout->name($name);
Test matches an email.
$response = $botscout->mail($mail);
IP
Test matches an IP.
$response = $botscout->ip($ip);
Response
// Return false if the email has a match in the botscout database $response->isValid(); // Return true if the email has a match in the botscout database $response->getMatched();
Changelog
Please see CHANGELOG for more information what has changed recently.
Testing
$ composer test
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email nicolasbeauvais1@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 3.7k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-02-12
