PHPackages                             jaybizzle/laravel-crawler-detect - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. jaybizzle/laravel-crawler-detect

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

jaybizzle/laravel-crawler-detect
================================

A Laravel package to detect web crawlers via the user agent

v1.3.0(3y ago)3232.6M↓12.4%28[2 issues](https://github.com/JayBizzle/Laravel-Crawler-Detect/issues)[1 PRs](https://github.com/JayBizzle/Laravel-Crawler-Detect/pulls)17MITPHPPHP &gt;=5.4.0

Since Mar 23Pushed 3y ago12 watchersCompare

[ Source](https://github.com/JayBizzle/Laravel-Crawler-Detect)[ Packagist](https://packagist.org/packages/jaybizzle/laravel-crawler-detect)[ Docs](http://github.com/JayBizzle/Laravel-Crawler-Detect)[ RSS](/packages/jaybizzle-laravel-crawler-detect/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (3)Versions (8)Used By (17)

Laravel Crawler Detect
======================

[](#laravel-crawler-detect)

[![Build Status](https://camo.githubusercontent.com/9e1d1f4a8a4f7cef400df163d0cb7e2ef9aed3f563ba3ffe6b5825199fa46d77/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f4a617942697a7a6c652f4c61726176656c2d437261776c65722d4465746563742f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/JayBizzle/Laravel-Crawler-Detect) [![Total Downloads](https://camo.githubusercontent.com/e48e4513d2e6e1ec6ee552adf84f3e54c565b4a2b3093735a767476dd386cf34/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f4a617942697a7a6c652f4c61726176656c2d437261776c65722d4465746563742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jaybizzle/laravel-crawler-detect)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/2a37432d7438ea344ce0fafc03b936dfd994fe3c471db46b07123435b205b89e/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f4a617942697a7a6c652f4c61726176656c2d437261776c65722d4465746563742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/JayBizzle/Laravel-Crawler-Detect/?branch=master) [![StyleCI](https://camo.githubusercontent.com/5d86be2a461d210b1a1068f8e91c376b2a97cd2827756df734d219afc7d141ad/68747470733a2f2f7374796c6563692e696f2f7265706f732f33323438343035352f736869656c64)](https://styleci.io/repos/32484055)

A Laravel wrapper for [CrawlerDetect](https://github.com/JayBizzle/Crawler-Detect) - the web crawler detection library

Installation
============

[](#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](https://github.com/JayBizzle/Laravel-Crawler-Detect/tree/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..

```
  Jaybizzle\LaravelCrawlerDetect\LaravelCrawlerDetectServiceProvider::class,
```

...and the following to your `aliases` array...

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

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

Usage
=====

[](#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
}
```

###  Health Score

47

—

FairBetter than 94% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity61

Solid adoption and visibility

Community29

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 90.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~532 days

Recently: every ~665 days

Total

6

Last Release

1412d ago

PHP version history (2 changes)v1.0.0PHP &gt;=5.3.0

v1.0.2PHP &gt;=5.4.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/340752?v=4)[Mark Beech](/maintainers/JayBizzle)[@JayBizzle](https://github.com/JayBizzle)

---

Top Contributors

[![JayBizzle](https://avatars.githubusercontent.com/u/340752?v=4)](https://github.com/JayBizzle "JayBizzle (75 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (6 commits)")[![GC-Mark](https://avatars.githubusercontent.com/u/1477806?v=4)](https://github.com/GC-Mark "GC-Mark (2 commits)")

---

Tags

botcrawlerdetectlaravelphpspiderlaravelcrawlercrawler detectcrawler detectorphp crawler detectcrawlerdetectuser agentbotspiderdetect

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jaybizzle-laravel-crawler-detect/health.svg)

```
[![Health](https://phpackages.com/badges/jaybizzle-laravel-crawler-detect/health.svg)](https://phpackages.com/packages/jaybizzle-laravel-crawler-detect)
```

###  Alternatives

[jaybizzle/crawler-detect

CrawlerDetect is a PHP class for detecting bots/crawlers/spiders via the user agent

2.3k96.7M215](/packages/jaybizzle-crawler-detect)[jenssegers/agent

Desktop/mobile user agent parser with support for Laravel, based on Mobiledetect

4.8k67.8M440](/packages/jenssegers-agent)[hisorange/browser-detect

Browser &amp; Mobile detection package for Laravel.

1.1k10.1M50](/packages/hisorange-browser-detect)[nmure/crawler-detect-bundle

A Symfony bundle for the Crawler-Detect library (detects bots/crawlers/spiders via the user agent)

26279.6k](/packages/nmure-crawler-detect-bundle)[friends-of-hyva/magento2-crawler-session

Prevent crawlers from creating a session

155.8k](/packages/friends-of-hyva-magento2-crawler-session)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
