{"id":33203104,"url":"https://github.com/nicolasbeauvais/laravel-botscout","last_synced_at":"2026-01-13T22:50:27.120Z","repository":{"id":57046626,"uuid":"81745023","full_name":"nicolasbeauvais/laravel-botscout","owner":"nicolasbeauvais","description":"Block malicious scripts using botscout.com protection for your laravel app","archived":true,"fork":false,"pushed_at":"2019-06-07T13:07:38.000Z","size":19,"stargazers_count":63,"open_issues_count":0,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-21T03:03:33.035Z","etag":null,"topics":["bot","botscout","laravel","laravel-package","php","protection"],"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/nicolasbeauvais.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-12T17:53:56.000Z","updated_at":"2023-10-23T01:12:22.000Z","dependencies_parsed_at":"2022-08-24T03:40:35.651Z","dependency_job_id":null,"html_url":"https://github.com/nicolasbeauvais/laravel-botscout","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/nicolasbeauvais/laravel-botscout","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicolasbeauvais%2Flaravel-botscout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicolasbeauvais%2Flaravel-botscout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicolasbeauvais%2Flaravel-botscout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicolasbeauvais%2Flaravel-botscout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nicolasbeauvais","download_url":"https://codeload.github.com/nicolasbeauvais/laravel-botscout/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicolasbeauvais%2Flaravel-botscout/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28402159,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T14:36:09.778Z","status":"ssl_error","status_checked_at":"2026-01-13T14:35:19.697Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","botscout","laravel","laravel-package","php","protection"],"created_at":"2025-11-16T09:00:32.855Z","updated_at":"2026-01-13T22:50:27.114Z","avatar_url":"https://github.com/nicolasbeauvais.png","language":"PHP","funding_links":[],"categories":["Packages"],"sub_categories":["Authentication/Security"],"readme":"# Laravel BotScout\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/nicolasbeauvais/laravel-botscout.svg?style=flat-square)](https://packagist.org/packages/nicolasbeauvais/laravel-botscout)\n[![Build Status](https://img.shields.io/travis/nicolasbeauvais/laravel-botscout/master.svg?style=flat-square)](https://travis-ci.org/nicolasbeauvais/laravel-botscout)\n[![SensioLabsInsight](https://insight.sensiolabs.com/projects/005620f8-d154-41f1-bc9b-4c27a1cf36ab/mini.png)](https://insight.sensiolabs.com/projects/005620f8-d154-41f1-bc9b-4c27a1cf36ab)\n[![Quality Score](https://img.shields.io/scrutinizer/g/nicolasbeauvais/laravel-botscout.svg?style=flat-square)](https://scrutinizer-ci.com/g/nicolasbeauvais/laravel-botscout)\n[![Total Downloads](https://img.shields.io/packagist/dt/nicolasbeauvais/laravel-botscout.svg?style=flat-square)](https://packagist.org/packages/nicolasbeauvais/laravel-botscout)\n\n![bs_logo_full](https://cloud.githubusercontent.com/assets/2951704/22866541/8c6ddd80-f178-11e6-8a94-ded54a0b109a.gif)\n\nProtect your website against automated scripts using the [botscout.com](http://botscout.com/) API. \n\n## Installation\n\nYou can install the package via composer:\n\n``` bash\ncomposer require nicolasbeauvais/laravel-botscout\n```\n\nNext, you must install the service provider:\n\n```php\n// config/app.php\n'providers' =\u003e [\n    ...\n    NicolasBeauvais\\LaravelBotScout\\BotScoutServiceProvider::class,\n];\n```\n\nAdd your [botscout.com](http://botscout.com/getkey.htm) api key to the `.env` file:\n```bash\nBOTSCOUT_SECRET=your-api-key  \n```\n\nIf needed you can also publish the config file:\n```bash\nphp artisan vendor:publish --provider=\"NicolasBeauvais\\LaravelBotScout\\BotScoutServiceProvider\" --tag=\"config\"\n```\n\nIf you want to make use of the facade you must install it as well:\n\n```php\n// config/app.php\n'aliases' =\u003e [\n    ...\n    'BotScout' =\u003e NicolasBeauvais\\LaravelBotScout\\BotScoutFacade::class,\n];\n```\n\n## Usage\n\nYou are highly advised to read the [BotScout.com API guide](http://botscout.com/api.htm) to understand the meaning of \neach method.\n\n### Validator\n\nYou can easily use botscout in your existing validators:\n\n``` php\n// Validate name\n$validator = Validator::make(['name' =\u003e 'John Doe'], [\n  'name' =\u003e 'required|botscout_name'\n]);\n\n// Validate email\n$validator = Validator::make(['email' =\u003e 'toto@gmail.com'], [\n  'email' =\u003e 'required|botscout_mail'\n]);\n\n// Validate ip\n$validator = Validator::make(['ip' =\u003e '127.0.0.1'], [\n  'ip' =\u003e 'required|botscout_ip'\n]);\n```\n\nNote that you will need to create the validation message by yourself, as described in the [Laravel documentation](https://laravel.com/docs/5.5/validation#custom-error-messages).\n\n### Facade\n\nYou can use the BotScout facade anywhere in your app:\n\n```php\nBotScout::multi('John Doe', 'email@test.com', '127.0.0.1')-\u003eisValid();\n\nBotScout::all('John Doe')-\u003eisValid();\n\nBotScout::name('John Doe')-\u003eisValid();\n\nBotScout::mail('email@test.com')-\u003eisValid();\n\nBotScout::ip('127.0.0.1')-\u003eisValid();\n\n// We also include a quick way of testing a user with integrated exception catch\nBotScout::check('John Doe', 'email@test.com', '127.0.0.1'); // true or false\n```\n### Real life example using the check method\n\nThe `check` method is the recommended way to validate a register form:\n\n\u003eThe `check` method is a wrapper to the `multi`method that catch any http error / timeout. If the  botscout api is not responding, the method will return false.\n\n```php\n// Create a classic validation \n$validator = Validator::make($request-\u003eall(), [\n    'email' =\u003e 'required|email|unique:users',\n    'name' =\u003e 'required|max:20',\n]);\n\n$validator-\u003eafter(function ($validator) {\n    if (!BotScout::check($request-\u003eget('name'), $request-\u003eget('email'), $request-\u003eip())) {\n        $validator-\u003eerrors()-\u003eadd('email', 'Sorry, it looks like your a bot!');\n    }\n});\n```\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.\n\n## Testing\n\n``` bash\n$ composer test\n```\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n## Security\n\nIf you discover any security related issues, please email nicolasbeauvais1@gmail.com instead of using the issue tracker.\n\n## Credits\n\n- [Nicolas Beauvais](https://github.com/nicolasbeauvais)\n- [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicolasbeauvais%2Flaravel-botscout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnicolasbeauvais%2Flaravel-botscout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicolasbeauvais%2Flaravel-botscout/lists"}