Download the PHP package zanysoft/laravel-crawler-detect without Composer
On this page you can find all versions of the php package zanysoft/laravel-crawler-detect. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download zanysoft/laravel-crawler-detect
More information about zanysoft/laravel-crawler-detect
Files in zanysoft/laravel-crawler-detect
Download zanysoft/laravel-crawler-detect
More information about zanysoft/laravel-crawler-detect
Files in zanysoft/laravel-crawler-detect
Vendor zanysoft
Package laravel-crawler-detect
Short Description A Laravel package to detect web crawlers via the user agent
License MIT
Homepage http://github.com/zanysoft/laravel-crawler-detect
Package laravel-crawler-detect
Short Description A Laravel package to detect web crawlers via the user agent
License MIT
Homepage http://github.com/zanysoft/laravel-crawler-detect
Please rate this library. Is it a good library?
Informations about the package laravel-crawler-detect
Laravel Crawler Detect
Installation
Run composer require zanysoft/laravel-crawler-detect
or add "zanysoft/laravel-crawler-detect": "^1.0"
to your composer.json
file.
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
// 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
PHP Build Version
Package Version
Requires
php Version
>=5.4.0
The package zanysoft/laravel-crawler-detect contains the following files
Loading the files please wait ....