ergebnis/agent-detector
Detect whether your PHP code is running under an AI agent. This Composer package checks environment variables for 30+ agents like Claude Code, Codex, Cursor, and Copilot, exposing a simple Detector class with one isAgentPresent() method.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| vipx/bot-detect-bundle | 0.86 | — | 14 | 15 | 11 | 534 | 2 | 1.4 | 21.5 | — | 8 years ago | |
| jayanta/laravel-ai-guard | 0.84 | Laravel AI Guard adds a lightweight middleware layer that detects, logs, and blocks unwanted AI traffic hitting your app, and lets you gate AI-powered endpoints behind simple, configurable rules—keeping scrapers and costly requests under control. | 3 | 3 | 0 | 815 | 0 | 18.2 | 37.0 | MIT | 1 month ago | |
| vipx/bot-detect | 0.84 | Detect and identify web crawlers (Google, Bing, Yahoo, etc.) from user agent and IP. Loads bot metadata from YAML, returns matched bot details, and includes optional caching and configurable cache naming/dumping for better performance. | 46 | 50 | 15 | 2K | 3 | 2.4 | 22.2 | MIT | 4 years ago | |
| setono/bot-detection-bundle | 0.84 | A Symfony bundle for detecting bots and crawlers from request data, helping you filter automated traffic in analytics, block unwanted scrapers, and serve tailored responses to human visitors. | 8 | 8 | 3 | 13K | 0 | 17.9 | 50.4 | MIT | 1 month ago | |
| druidvav/crawler-detect-bundle | 0.84 | — | 0 | 0 | 0 | 11 | 0 | 0.7 | 14.9 | — | 10 years ago | |
| keepsuit/laravel-threat-blocker | 0.84 | keepsuit/laravel-threat-blocker is a Laravel package for detecting and blocking malicious or abusive requests. It integrates with middleware and configurable threat rules to reject suspicious traffic before it reaches your application, adding a lightweight layer of protection. | 0 | 0 | 0 | 238 | 0 | 18.5 | 38.1 | MIT | 1 month ago | |
| hisorange/browser-detect | 0.83 | — | 1,142 | 1,161 | 142 | 321K | 6 | 39.4 | 42.2 | MIT | 4 weeks ago | |
| diego182/mobile-detect | 0.82 | Symfony bundle wrapper for Mobile Detect. Provides auto-configuration and autowiring so you can inject a MobileDetect service into your app to detect mobile/tablet devices from the user agent with minimal setup. | 1 | 1 | 0 | 22 | 0 | 4.8 | 15.5 | MIT | 10 months ago | |
| shipfastlabs/agent-detector | 0.82 | Lightweight PHP utility that detects whether your code is running inside an AI agent or automated dev environment. Identify Claude, Cursor, Gemini, Codex and more via env vars or a standalone detectAgent() helper. | 92 | 80 | 14 | 69K | 0 | 23.9 | 46.4 | MIT | 2 weeks ago | |
| pharaonic/laravel-agents-detector | 0.82 | Laravel Agents Detector identifies AI agents, bots, and crawlers visiting your Laravel app. Inspect incoming requests, detect known user agents, and use helpers or middleware to log, block, or customize responses for automated traffic. | 9 | — | 0 | — | 0 | 0.3 | — | — | 2 years ago | |
| rennf93/guard-core-php | 0.82 | Framework-agnostic core for Guard, the PHP authentication and authorization library. Provides reusable primitives for guards, identity checks, and access control, usable in standalone PHP apps or alongside Laravel and other frameworks. | 1 | 1 | 0 | 4K | 1 | 19.5 | 53.1 | MIT | 3 weeks ago | |
| laravel/agent-detector | 0.82 | Laravel Agent Detector is a lightweight PHP 8.2+ utility for detecting whether your code runs inside an AI agent or automated development environment, with known-agent checks and a simple standalone detectAgent() helper. | 92 | 92 | 14 | 8M | 0 | 23.5 | 64.6 | MIT | 2 weeks ago | |
| sinergi/browser-detector | 0.82 | Lightweight PHP library for detecting browser, operating system, device, and language from user agent strings. Uses targeted regex rules instead of a bloated UA database, with simple detectors and optional Laravel service provider and facade integration. | 575 | 603 | 103 | 81K | 14 | 5.2 | 24.7 | MIT | 5 years ago | |
| stolt/lean-package-validator | 0.81 | A CLI utility that validates a project or micro-package for leanness, ensuring common repository artefacts are excluded from release assets. It can also create, update, and reformat the leanness-enforcing export-ignore entries of a .gitattributes file. | 19 | 18 | 8 | 2K | 6 | 36.8 | 32.7 | MIT | 1 week ago | |
| jenssegers/agent | 0.81 | User agent detection for PHP and Laravel based on Mobile Detect, with added desktop support. Quickly identify device type (mobile/tablet/desktop), platform, browser, and specific features via is() checks, magic isX methods, regex matching, and custom UA/header parsing. | 4,893 | 4,975 | 555 | 2M | 82 | 67.0 | 59.9 | MIT | 6 years ago | |
| vulnerar/agent | 0.81 | Vulnerar Agent is a lightweight Laravel package that connects your application to the Vulnerar security platform for continuous vulnerability monitoring. It publishes configuration, reports installed dependencies, and helps surface security issues early, with simple Composer installation and per-env... | 0 | — | 0 | — | 0 | 20.5 | — | — | 1 week ago | |
| rmunate/agent-detection | 0.79 | rmunate/agent-detection is a lightweight PHP/Laravel package that parses the User-Agent to identify the browser, operating system, device type, and whether a visitor is a bot or crawler. Simple, fast API with no external service calls. | 61 | 61 | 3 | 13 | 0 | 0.7 | 1.1 | MIT | 1 year ago |
How can I help you explore Laravel packages today?