commencement.technology/botcheck
Composer 安装命令:
composer require commencement.technology/botcheck
包简介
The package which identify the Bot or Crawler which help to identify the how many bots or crawler visiting in day and from where
README 文档
README
Bot check parsing user agent and returns useful details of Bot, Crawler, Browser and OS information. AIM is comprehensiveness to return broad information on the bot, crawler, most common devices, browsers, hardware, etc.
* Operating System `os` * e.g. Windows, macOS, Linux * Browser `browser` * e.g. Firefox, Safari, Firefox iOS * Hardware `hardware` * e.g. Nintendo Switch, Apple iPad * Miscellaneous `misc` * e.g. Slack, WhatsApp, Gmail, cURL, Python-urllib * Bot `bot` * e.g. Googlebot, BingBot, Baidu Spider
Result Data of Bot
* Name * Website * Bot Site Complete page
Result Data General
* Name * Version * Brand (hardware only) * Model (hardware only) * Mobile (boolean, can be inaccurate)
Install / Configuring
Packagist commencement.technology/botcheck
$ composer require commencement.technology/botcheck
Usage
use CommencementTechnology\Botcheck\BotChecker; // $ua = $request->get('ua'); // OR // $ua = $_SERVER['HTTP_USER_AGENT']; $ua = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:81.0) Gecko/20100101 Firefox/81.0'; $user_agent = new BotChecker($ua); // If you want all data in that case just use parse $user_agent_info = $user_agent->parse();
Result
[ 'os' => [ 'name' => 'Windows', 'icon' => 'win10', 'version' => '10' ], 'browser' => [ 'name' => 'Firefox', 'icon' => 'firefox', 'version' => '86.0' ], 'hardware' => false, 'misc' => false, 'bot' => false ];
// When you want only Operating system specific details pass as $user_agent_os = $user_agent->parse('os');
Result
[ 'name' => 'Windows', 'icon' => 'win10', 'version' => '10' ];
// When you want only bot or crawler specific details pass as $user_agent_os = $user_agent->parse('bot');
Result
[ 'name' => 'SEMRush Crawler', 'website' => 'http://www.semrush.com', 'complete_link' => 'http://www.semrush.com/bot.html' ];
commencement.technology/botcheck 适用场景与选型建议
commencement.technology/botcheck 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 5 次下载、GitHub Stars 达 0, 最近一次更新时间为 2022 年 09 月 11 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「browser」 「detect」 「crawler」 「bot」 「os」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 commencement.technology/botcheck 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 commencement.technology/botcheck 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 commencement.technology/botcheck 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Give your JS App some Backbone with Models, Views, Collections, and Events.
A lightweight, dependency free PHP class that acts as wrapper for Crawlbase API
A Laravel 5 Package Provider to Identify/detect a user's browser, device, operating system and Language
Instrument headless chrome/chromium instances from php5.6
Selenium4 (WebDriver) driver for Mink framework
统计信息
- 总下载量: 5
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 15
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-09-11