Download the PHP package jaybizzle/laravel-crawler-detect without Composer
On this page you can find all versions of the php package jaybizzle/laravel-crawler-detect. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jaybizzle/laravel-crawler-detect
More information about jaybizzle/laravel-crawler-detect
Files in jaybizzle/laravel-crawler-detect
Package laravel-crawler-detect
Short Description A Laravel package to detect web crawlers via the user agent
License MIT
Homepage https://github.com/JayBizzle/Laravel-Crawler-Detect
Informations about the package laravel-crawler-detect
Laravel Crawler Detect
A Laravel wrapper for CrawlerDetect - the web crawler detection library
Installation
Run composer require jaybizzle/laravel-crawler-detect 1.* or add "jaybizzle/laravel-crawler-detect": "1.*" to your composer.json file.
The last version compatible with Laravel 4 was v1.0.2 so if you need that, you will have to fix your composer.json to that specific version.
Add the following to the providers array in your config/app.php file..
...and the following to your aliases array...
Laravel 5.5 uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.
Usage
use Crawler;
// Check current 'visitors' user agent
if(Crawler::isCrawler()) {
// true if crawler user agent detected
}
// Pass a user agent as a string
if(Crawler::isCrawler('Mozilla/5.0 (compatible; aiHitBot/2.9; +https://www.aihitdata.com/about)')) {
// true if crawler user agent detected
}All versions of laravel-crawler-detect with dependencies
illuminate/support Version ^10.0|^11.0|^12.0|^13.0
jaybizzle/crawler-detect Version ^1.2