{"id":17463384,"url":"https://github.com/jaybizzle/crawler-detect","last_synced_at":"2025-05-14T11:08:31.380Z","repository":{"id":29224208,"uuid":"32755917","full_name":"JayBizzle/Crawler-Detect","owner":"JayBizzle","description":"🕷 CrawlerDetect is a PHP class for detecting bots/crawlers/spiders via the user agent","archived":false,"fork":false,"pushed_at":"2025-03-05T23:15:13.000Z","size":9389,"stargazers_count":2070,"open_issues_count":12,"forks_count":261,"subscribers_count":55,"default_branch":"master","last_synced_at":"2025-05-07T10:52:46.403Z","etag":null,"topics":["bots","crawler","detect","hacktoberfest","php","spider","user-agent"],"latest_commit_sha":null,"homepage":"https://crawlerdetect.io","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":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-03-23T20:05:37.000Z","updated_at":"2025-05-04T16:26:43.000Z","dependencies_parsed_at":"2024-11-06T00:03:48.305Z","dependency_job_id":"a357a490-33d6-427b-b93f-ebf796b8b73b","html_url":"https://github.com/JayBizzle/Crawler-Detect","commit_stats":{"total_commits":657,"total_committers":97,"mean_commits":6.77319587628866,"dds":0.4687975646879756,"last_synced_commit":"8cd0a18b576b6d2cc12eb5474bf6349e92d360c4"},"previous_names":[],"tags_count":166,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JayBizzle%2FCrawler-Detect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JayBizzle%2FCrawler-Detect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JayBizzle%2FCrawler-Detect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JayBizzle%2FCrawler-Detect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JayBizzle","download_url":"https://codeload.github.com/JayBizzle/Crawler-Detect/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254129485,"owners_count":22019628,"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":["bots","crawler","detect","hacktoberfest","php","spider","user-agent"],"created_at":"2024-10-18T10:09:35.863Z","updated_at":"2025-05-14T11:08:31.330Z","avatar_url":"https://github.com/JayBizzle.png","language":"PHP","readme":"\u003cp align=\"center\"\u003e\u003ca href=\"https://crawlerdetect.io/\" target=\"_blank\"\u003e\u003cimg src=\"https://cloud.githubusercontent.com/assets/340752/23082173/1bd1a396-f550-11e6-8aba-4d3c75edea2f.png\" width=\"321\" height=\"219\" /\u003e\u003c/a\u003e\u003cbr\u003e\u003cbr\u003e\n\u003ca href=\"https://crawlerdetect.io/\" target=\"_blank\"\u003ecrawlerdetect.io\u003c/a\u003e\n\u003cbr\u003e\u003cbr\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://github.com/JayBizzle/Crawler-Detect/actions\"\u003e\u003cimg alt=\"GitHub Workflow Status\" src=\"https://img.shields.io/github/actions/workflow/status/JayBizzle/Crawler-Detect/test.yml?branch=master\u0026style=flat-square\"\u003e\u003c/a\u003e\n\u003ca href=\"https://packagist.org/packages/jaybizzle/crawler-detect\"\u003e\u003cimg src=\"https://img.shields.io/packagist/dm/JayBizzle/Crawler-Detect.svg?style=flat-square\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/JayBizzle/Crawler-Detect\"\u003e\u003cimg src=\"https://img.shields.io/badge/license-MIT-ff69b4.svg?style=flat-square\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://packagist.org/packages/jaybizzle/crawler-detect\"\u003e\u003cimg src=\"https://img.shields.io/packagist/v/jaybizzle/Crawler-Detect.svg?style=flat-square\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://coveralls.io/github/JayBizzle/Crawler-Detect\"\u003e\u003cimg src=\"https://img.shields.io/coveralls/JayBizzle/Crawler-Detect/master.svg?style=flat-square\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## About CrawlerDetect\n\nCrawlerDetect is a PHP class for detecting bots/crawlers/spiders via the `user agent` and `http_from` header. Currently able to detect 1,000's of bots/spiders/crawlers.\n\n### Installation\n```\ncomposer require jaybizzle/crawler-detect\n```\n\n### Usage\n```PHP\nuse Jaybizzle\\CrawlerDetect\\CrawlerDetect;\n\n$CrawlerDetect = new CrawlerDetect;\n\n// Check the user agent of the current 'visitor'\nif($CrawlerDetect-\u003eisCrawler()) {\n    // true if crawler user agent detected\n}\n\n// Pass a user agent as a string\nif($CrawlerDetect-\u003eisCrawler('Mozilla/5.0 (compatible; Sosospider/2.0; +http://help.soso.com/webspider.htm)')) {\n    // true if crawler user agent detected\n}\n\n// Output the name of the bot that matched (if any)\necho $CrawlerDetect-\u003egetMatches();\n```\n\n### Contributing\nIf you find a bot/spider/crawler user agent that CrawlerDetect fails to detect, please submit a pull request with the regex pattern added to the `$data` array in `Fixtures/Crawlers.php` and add the failing user agent to `tests/crawlers.txt`.\n\nFailing that, just create an issue with the user agent you have found, and we'll take it from there :)\n\n### Laravel Package\nIf you would like to use this with Laravel, please see [Laravel-Crawler-Detect](https://github.com/JayBizzle/Laravel-Crawler-Detect)\n\n### Symfony Bundle\nTo use this library with Symfony 2/3/4, check out the [CrawlerDetectBundle](https://github.com/nicolasmure/CrawlerDetectBundle).\n\n### YII2 Extension\nTo use this library with the YII2 framework, check out [yii2-crawler-detect](https://github.com/AlikDex/yii2-crawler-detect).\n\n### ES6 Library\nTo use this library with NodeJS or any ES6 application based, check out [es6-crawler-detect](https://github.com/JefferyHus/es6-crawler-detect).\n\n### Python Library\nTo use this library in a Python project, check out [crawlerdetect](https://github.com/moskrc/CrawlerDetect).\n\n### JVM Library (written in Java)\nTo use this library in a JVM project (including Java, Scala, Kotlin, etc.), check out [CrawlerDetect](https://github.com/nekosoftllc/crawler-detect).\n\n### .NET Library\nTo use this library in a .net standard (including .net core) based project, check out [NetCrawlerDetect](https://github.com/gplumb/NetCrawlerDetect).\n\n### Ruby Gem\nTo use this library with Ruby on Rails or any Ruby-based application, check out [crawler_detect](https://github.com/loadkpi/crawler_detect) gem.\n\n### Go Module\nTo use this library with Go, check out the [crawlerdetect](https://github.com/x-way/crawlerdetect) module.\n\n_Parts of this class are based on the brilliant [MobileDetect](https://github.com/serbanghita/Mobile-Detect)_\n\n[![Analytics](https://ga-beacon.appspot.com/UA-72430465-1/Crawler-Detect/readme?pixel)](https://github.com/JayBizzle/Crawler-Detect)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaybizzle%2Fcrawler-detect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaybizzle%2Fcrawler-detect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaybizzle%2Fcrawler-detect/lists"}