{"id":28438086,"url":"https://github.com/zanysoft/laravel-crawler-detect","last_synced_at":"2025-06-28T15:31:33.506Z","repository":{"id":57089320,"uuid":"296733092","full_name":"zanysoft/laravel-crawler-detect","owner":"zanysoft","description":null,"archived":false,"fork":false,"pushed_at":"2020-09-18T21:32:39.000Z","size":33,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-06T00:43:12.301Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/zanysoft.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":"2020-09-18T21:26:52.000Z","updated_at":"2024-03-28T04:34:54.000Z","dependencies_parsed_at":"2022-08-20T16:00:45.855Z","dependency_job_id":null,"html_url":"https://github.com/zanysoft/laravel-crawler-detect","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/zanysoft/laravel-crawler-detect","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zanysoft%2Flaravel-crawler-detect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zanysoft%2Flaravel-crawler-detect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zanysoft%2Flaravel-crawler-detect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zanysoft%2Flaravel-crawler-detect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zanysoft","download_url":"https://codeload.github.com/zanysoft/laravel-crawler-detect/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zanysoft%2Flaravel-crawler-detect/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262452293,"owners_count":23313413,"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":[],"created_at":"2025-06-06T00:39:11.044Z","updated_at":"2025-06-28T15:31:33.499Z","avatar_url":"https://github.com/zanysoft.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Laravel Crawler Detect\n=======\n[![Build Status](https://img.shields.io/travis/zanysoft/laravel-crawler-detect/master.svg?style=flat-square)](https://travis-ci.org/zanysoft/laravel-crawler-detect) [![Total Downloads](https://img.shields.io/packagist/dt/JayBizzle/laravel-crawler-detect.svg?style=flat-square)](https://packagist.org/packages/zanysoft/laravel-crawler-detect)\n[![Scrutinizer Code Quality](https://img.shields.io/scrutinizer/g/zanysoft/laravel-crawler-detect.svg?style=flat-square)](https://scrutinizer-ci.com/g/zanysoft/laravel-crawler-detect/?branch=master) [![StyleCI](https://styleci.io/repos/32484055/shield)](https://styleci.io/repos/32484055)\n\nInstallation\n============\n\nRun `composer require zanysoft/laravel-crawler-detect` or add `\"zanysoft/laravel-crawler-detect\": \"^1.0\"` to your `composer.json` file.\n\nAdd the following to the `providers` array in your `config/app.php` file..\n\n```PHP\n  ZanySoft\\LaravelCrawlerDetect\\LaravelCrawlerDetectServiceProvider::class,\n```\n\n...and the following to your `aliases` array...\n\n```PHP\n  'Crawler'   =\u003e 'ZanySoft\\LaravelCrawlerDetect\\Facades\\LaravelCrawler',\n```\n\nLaravel 5.5 uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.\n\nUsage\n==================\n```PHP\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%2Fzanysoft%2Flaravel-crawler-detect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzanysoft%2Flaravel-crawler-detect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzanysoft%2Flaravel-crawler-detect/lists"}