{"id":29188073,"url":"https://github.com/sebastienheyd/hidden-captcha","last_synced_at":"2025-07-01T22:09:03.812Z","repository":{"id":3820901,"uuid":"51009111","full_name":"sebastienheyd/hidden-captcha","owner":"sebastienheyd","description":"Fully hidden captcha for Laravel without reCaptcha","archived":false,"fork":false,"pushed_at":"2023-06-12T09:31:21.000Z","size":213,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-09T00:33:40.098Z","etag":null,"topics":["bot","bots","bots-protection","captcha","invisible-captcha","laravel","spam"],"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/sebastienheyd.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,"governance":null}},"created_at":"2016-02-03T15:31:00.000Z","updated_at":"2023-07-21T20:02:22.000Z","dependencies_parsed_at":"2022-08-06T14:15:30.800Z","dependency_job_id":"ea9db131-441f-4258-a29a-32e86592cdbf","html_url":"https://github.com/sebastienheyd/hidden-captcha","commit_stats":{"total_commits":61,"total_committers":7,"mean_commits":8.714285714285714,"dds":0.4590163934426229,"last_synced_commit":"3ef6e763b21696e18777f3910f9805c20baf4f61"},"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"purl":"pkg:github/sebastienheyd/hidden-captcha","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastienheyd%2Fhidden-captcha","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastienheyd%2Fhidden-captcha/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastienheyd%2Fhidden-captcha/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastienheyd%2Fhidden-captcha/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sebastienheyd","download_url":"https://codeload.github.com/sebastienheyd/hidden-captcha/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastienheyd%2Fhidden-captcha/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263042347,"owners_count":23404459,"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","bots","bots-protection","captcha","invisible-captcha","laravel","spam"],"created_at":"2025-07-01T22:09:03.065Z","updated_at":"2025-07-01T22:09:03.776Z","avatar_url":"https://github.com/sebastienheyd.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fully hidden captcha for Laravel without reCaptcha\n\n[![Packagist](https://img.shields.io/packagist/v/sebastienheyd/hidden-captcha?style=flat-square)](https://packagist.org/packages/sebastienheyd/hidden-captcha)\n[![Build Status](https://travis-ci.org/sebastienheyd/hidden-captcha.svg?branch=master)](https://travis-ci.org/sebastienheyd/hidden-captcha)\n[![StyleCI](https://github.styleci.io/repos/51009111/shield?branch=master)](https://github.styleci.io/repos/51009111)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/sebastienheyd/hidden-captcha/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/sebastienheyd/hidden-captcha/?branch=master)\n[![Laravel](https://img.shields.io/badge/Laravel-%3E=5.4-green?logo=Laravel\u0026style=flat-square)](https://laravel.com/)\n[![Nb downloads](https://img.shields.io/packagist/dt/sebastienheyd/hidden-captcha.svg)](https://packagist.org/packages/sebastienheyd/hidden-captcha)\n[![MIT License](https://img.shields.io/github/license/sebastienheyd/hidden-captcha?style=flat-square)](LICENSE)\n\nFully hidden spam protection solution for Laravel without reCaptcha. Based on several strategies to block the vast \nmajority of spam bots without interfering with the user experience.\n\n## How does it work?\n\nHiddenCaptcha will use three checking rules to block spam robots :\n\n- an encrypted token containing the user's IP, current session id, current user agent and a random string\n- a randomly named required field (will use the random string in the token)\n- a time limit (10 minutes by default)\n\nThe token is retrieved via an ajax call signed with sha256.\n\n## Installation\n\n```\ncomposer require sebastienheyd/hidden-captcha\n```\n\nPublish public assets :\n\n```\nphp artisan vendor:publish --tag=laravel-assets\n```\n\nExtra steps for Laravel \u003c 5.5 :\n\n- Add `SebastienHeyd\\HiddenCaptcha\\HiddenCaptchaServiceProvider::class,` at the end of the `provider` array in \n`config/app.php`\n- Add `\"HiddenCaptcha\" =\u003e SebastienHeyd\\HiddenCaptcha\\Facades\\HiddenCaptcha::class,` at the end of the `aliases` array \nin `config/app.php`\n\n## Usage\n\nIn your forms, in the blade view :\n\n```blade\n@hiddencaptcha\n```\n\nTo check your form, add the following validation rule:\n```php\n'captcha' =\u003e 'hiddencaptcha'\n```\n\n## Options\n\n#### Changing time limits\n\nBy default, the time limits for submitting a form are 0 second minimum to 1200 seconds maximum (10 minutes). Beyond \nthat, hiddencaptcha will not validate the form.\n\nThese limits can be changed by declaring them in the validation rule, for example:\n\n`$rules = ['captcha' =\u003e 'hiddencaptcha:5,2400'];`\n\nYou can also publish the configuration file to edit the default time limits :\n\n```\nphp artisan vendor:publish --tag=captcha-config\n```\n\n## Package update (Laravel \u003c 8.6.9)\n\nHidden-captcha comes with a JS who must be publish. Since you typically will need to overwrite the assets\nevery time the package is updated, you may use the ```--force``` flag :\n\n```\nphp artisan vendor:publish --tag=laravel-assets --force\n```\n\nTo auto update assets each time package is updated, you can add this command to `post-update-cmd` into the\nfile `composer.json` at the root of your project.\n\n```json\n{\n    \"scripts\": {\n        \"post-update-cmd\": [\n            \"@php artisan vendor:publish --tag=laravel-assets --force --ansi\"\n        ]\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebastienheyd%2Fhidden-captcha","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsebastienheyd%2Fhidden-captcha","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebastienheyd%2Fhidden-captcha/lists"}