PHPackages                             zanysoft/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. zanysoft/laravel-crawler-detect

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

zanysoft/laravel-crawler-detect
===============================

A Laravel package to detect web crawlers via the user agent

1.0(5y ago)2367MITPHPPHP &gt;=5.4.0

Since Sep 18Pushed 5y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

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

[](#laravel-crawler-detect)

[![Build Status](https://camo.githubusercontent.com/f2d1a2a214b90d082dcdab011ee6410bfadc2316915154be2f92294e0124cd51/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7a616e79736f66742f6c61726176656c2d637261776c65722d6465746563742f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/zanysoft/laravel-crawler-detect) [![Total Downloads](https://camo.githubusercontent.com/c71cbf0ff9cda1e761858072810606f934d11810db1ccdeb29f70337ecefbbbe/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f4a617942697a7a6c652f6c61726176656c2d637261776c65722d6465746563742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/zanysoft/laravel-crawler-detect)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/2f64b0f514f13cd5d9959c89c9a766d0bdeb449d5f2d5e3b96cf8ac9aee9ed15/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f7a616e79736f66742f6c61726176656c2d637261776c65722d6465746563742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/zanysoft/laravel-crawler-detect/?branch=master) [![StyleCI](https://camo.githubusercontent.com/5d86be2a461d210b1a1068f8e91c376b2a97cd2827756df734d219afc7d141ad/68747470733a2f2f7374796c6563692e696f2f7265706f732f33323438343035352f736869656c64)](https://styleci.io/repos/32484055)

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

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

```
  ZanySoft\LaravelCrawlerDetect\LaravelCrawlerDetectServiceProvider::class,
```

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

```
  'Crawler'   => 'ZanySoft\LaravelCrawlerDetect\Facades\LaravelCrawler',
```

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

Usage
=====

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

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

2062d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/77060551?v=4)[Mubashar Ahmad (مبشر احمد)](/maintainers/mubasharahmad)[@MubasharAhmad](https://github.com/MubasharAhmad)

---

Top Contributors

[![zanysoft](https://avatars.githubusercontent.com/u/2682072?v=4)](https://github.com/zanysoft "zanysoft (1 commits)")

---

Tags

laravelcrawlercrawler detectcrawler detectorphp crawler detectcrawlerdetectuser agentbotspiderdetect

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[jaybizzle/laravel-crawler-detect

A Laravel package to detect web crawlers via the user agent

3232.6M17](/packages/jaybizzle-laravel-crawler-detect)[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)[vdb/php-spider

A configurable and extensible PHP web spider

1.4k181.0k7](/packages/vdb-php-spider)[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)

PHPackages © 2026

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