druidvav/crawler-detect-bundle
crawler-detect-bundle is a Symfony2/3 bundle (PHP) designed to detect and block crawlers/bots via user-agent analysis. While Laravel is not Symfony, the core logic (user-agent parsing, bot detection) is language-agnostic and could be adapted.mobile-detect or bot-detect).laravel-bot-detect, spatie/laravel-honeypot) or middleware-based approaches. This package’s lack of Laravel-native integration is a critical drawback.HttpFoundation and DependencyInjection components, making direct Laravel integration non-trivial.CrawlerDetector class (likely the heart of the bundle) could be refactored into a standalone PHP library (e.g., a Composer package) with Laravel-compatible interfaces (e.g., PSR-15 middleware).config/ and Eloquent would need mapping, adding complexity.ContainerAware services, event dispatchers) to Laravel’s ecosystem would require significant rewrite work.spatie/laravel-honeypot or custom middleware.)Handle middleware.CrawlerDetector service with Laravel’s container.laravel-crawler-detect) with Laravel-specific bindings.mobile-detect: Lightweight user-agent parsing.bot-detect: PHP library for bot detection.Str::contains() or regex.CrawlerDetector class and its dependencies (e.g., regex patterns, bot signatures).Request → Laravel’s Illuminate\Http\Request).ContainerAware, EventDispatcher, or Doctrine ties.Events::dispatch()) if needed.config/crawler.php.spatie/laravel-honeypot).403 or a honeypot challenge).Container issues) will require deep knowledge of both frameworks.CrawlerDetector::isBot()).How can I help you explore Laravel packages today?