{"id":17463367,"url":"https://github.com/jaybizzle/laravel-crawler-detect","last_synced_at":"2025-05-16T11:04:59.013Z","repository":{"id":28957930,"uuid":"32484055","full_name":"JayBizzle/Laravel-Crawler-Detect","owner":"JayBizzle","description":"A Laravel wrapper for CrawlerDetect - the web crawler detection library","archived":false,"fork":false,"pushed_at":"2022-07-06T10:43:38.000Z","size":236,"stargazers_count":311,"open_issues_count":3,"forks_count":27,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-05-16T11:04:50.293Z","etag":null,"topics":["bot","crawler","detect","laravel","php","spider"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JayBizzle.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-18T20:59:36.000Z","updated_at":"2025-05-10T16:52:26.000Z","dependencies_parsed_at":"2022-08-09T12:30:19.752Z","dependency_job_id":null,"html_url":"https://github.com/JayBizzle/Laravel-Crawler-Detect","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JayBizzle%2FLaravel-Crawler-Detect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JayBizzle%2FLaravel-Crawler-Detect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JayBizzle%2FLaravel-Crawler-Detect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JayBizzle%2FLaravel-Crawler-Detect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JayBizzle","download_url":"https://codeload.github.com/JayBizzle/Laravel-Crawler-Detect/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254518384,"owners_count":22084374,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bot","crawler","detect","laravel","php","spider"],"created_at":"2024-10-18T10:09:31.746Z","updated_at":"2025-05-16T11:04:53.996Z","avatar_url":"https://github.com/JayBizzle.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Laravel Crawler Detect\n=======\n[![Build Status](https://img.shields.io/travis/JayBizzle/Laravel-Crawler-Detect/master.svg?style=flat-square)](https://travis-ci.org/JayBizzle/Laravel-Crawler-Detect) [![Total Downloads](https://img.shields.io/packagist/dt/JayBizzle/Laravel-Crawler-Detect.svg?style=flat-square)](https://packagist.org/packages/jaybizzle/laravel-crawler-detect)\n[![Scrutinizer Code Quality](https://img.shields.io/scrutinizer/g/JayBizzle/Laravel-Crawler-Detect.svg?style=flat-square)](https://scrutinizer-ci.com/g/JayBizzle/Laravel-Crawler-Detect/?branch=master) [![StyleCI](https://styleci.io/repos/32484055/shield)](https://styleci.io/repos/32484055)\n\nA Laravel wrapper for [CrawlerDetect](https://github.com/JayBizzle/Crawler-Detect) - the web crawler detection library\n\nInstallation\n============\n\nRun `composer require jaybizzle/laravel-crawler-detect 1.*` or add `\"jaybizzle/laravel-crawler-detect\": \"1.*\"` to your `composer.json` file.\n\nThe 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.\n\nAdd the following to the `providers` array in your `config/app.php` file..\n\n```PHP\n  Jaybizzle\\LaravelCrawlerDetect\\LaravelCrawlerDetectServiceProvider::class,\n```\n\n...and the following to your `aliases` array...\n\n```PHP\n  'Crawler'   =\u003e Jaybizzle\\LaravelCrawlerDetect\\Facades\\LaravelCrawlerDetect::class,\n```\n\nLaravel 5.5 uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.\n\nUsage\n==================\n```PHP\nuse Crawler;\n\n// Check current 'visitors' user agent\nif(Crawler::isCrawler()) {\n  // true if crawler user agent detected\n}\n\n\n// Pass a user agent as a string\nif(Crawler::isCrawler('Mozilla/5.0 (compatible; aiHitBot/2.9; +https://www.aihitdata.com/about)')) {\n  // true if crawler user agent detected\n}\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaybizzle%2Flaravel-crawler-detect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaybizzle%2Flaravel-crawler-detect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaybizzle%2Flaravel-crawler-detect/lists"}