2017 © Pedro Peláez
 

library laravel-crawler-detect

A Laravel package to detect web crawlers via the user agent

image

jaybizzle/laravel-crawler-detect

A Laravel package to detect web crawlers via the user agent

  • Friday, April 6, 2018
  • by JayBizzle
  • Repository
  • 8 Watchers
  • 136 Stars
  • 154,544 Installations
  • PHP
  • 6 Dependents
  • 0 Suggesters
  • 14 Forks
  • 0 Open issues
  • 6 Versions
  • 10 % Grown

The README.md

Laravel Crawler Detect

Build Status Total Downloads Scrutinizer Code Quality StyleCI, (*1)

A Laravel wrapper for CrawlerDetect - the web crawler detection library, (*2)

Installation

Run composer require jaybizzle/laravel-crawler-detect 1.* or add "jaybizzle/laravel-crawler-detect": "1.*" to your composer.json file., (*3)

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., (*4)

Add the following to the providers array in your config/app.php file.., (*5)

  Jaybizzle\LaravelCrawlerDetect\LaravelCrawlerDetectServiceProvider::class,

...and the following to your aliases array..., (*6)

  'Crawler'   => Jaybizzle\LaravelCrawlerDetect\Facades\LaravelCrawlerDetect::class,

Laravel 5.5 uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider., (*7)

Usage

```PHP use Crawler;, (*8)

// Check current 'visitors' user agent if(Crawler::isCrawler()) { // true if crawler user agent detected }, (*9)

// 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 }, (*10)

The Versions

06/04 2018

dev-master

9999999-dev http://github.com/JayBizzle/Laravel-Crawler-Detect

A Laravel package to detect web crawlers via the user agent

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel bot crawler detect spider user-agent crawler detect crawler detector php crawler detect crawlerdetect

01/06 2017

v1.2.0

1.2.0.0 http://github.com/JayBizzle/Laravel-Crawler-Detect

A Laravel package to detect web crawlers via the user agent

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel bot crawler detect spider user-agent crawler detect crawler detector php crawler detect crawlerdetect

25/01 2017

v1.1.0

1.1.0.0 http://github.com/JayBizzle/Laravel-Crawler-Detect

A Laravel package to detect web crawlers via the user agent

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel bot crawler detect spider user-agent crawler detect crawler detector php crawler detect crawlerdetect

12/08 2015

v1.0.2

1.0.2.0 http://github.com/JayBizzle/Laravel-Crawler-Detect

A Laravel package to detect web crawlers via user agents

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel bot crawler detect spider user-agent

23/03 2015

v1.0.1

1.0.1.0 http://github.com/JayBizzle/Laravel-Crawler-Detect

A Laravel package to detect web crawlers via user agents

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel bot crawler detect spider user-agent

23/03 2015

v1.0.0

1.0.0.0 http://github.com/JayBizzle/Laravel-Crawler-Detect

A Laravel package to detect web crawlers via user agents

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel bot crawler detect spider user-agent