{"id":16978772,"url":"https://github.com/srph/laravel-antispam","last_synced_at":"2026-05-16T21:05:37.045Z","repository":{"id":75646713,"uuid":"51294765","full_name":"srph/laravel-antispam","owner":"srph","description":"An antispam quiz package for Laravel.","archived":false,"fork":false,"pushed_at":"2016-03-11T16:08:10.000Z","size":5,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-26T17:15:49.404Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/srph.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2016-02-08T11:44:30.000Z","updated_at":"2016-03-11T20:37:31.000Z","dependencies_parsed_at":"2023-06-07T05:45:13.989Z","dependency_job_id":null,"html_url":"https://github.com/srph/laravel-antispam","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srph%2Flaravel-antispam","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srph%2Flaravel-antispam/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srph%2Flaravel-antispam/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srph%2Flaravel-antispam/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/srph","download_url":"https://codeload.github.com/srph/laravel-antispam/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244880550,"owners_count":20525511,"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":"2024-10-14T01:44:10.533Z","updated_at":"2026-05-16T21:05:32.006Z","avatar_url":"https://github.com/srph.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## laravel-antispam\nAn antispam package for Laravel.\n\nIt provides a basic quiz for the registrant/guest to answer, effective for registration forms.\n\n## Setup\nAdd the package to your list of `ServiceProvider`s and `Facade`s (located in `config/app.php`).\n```php\nreturn [\n\t'providers' =\u003e [\n\t\t// Your other providers...\n\t\tSrph\\LaravelAntiSpam\\AntiSpamServiceProvider::class\n\t],\n\n\t'facade' =\u003e [\n\t\t// Your other facades...\n\t\t'AntiSpam' =\u003e Srph\\LaravelAntiSpam\\Facade::class\n\t]\n];\n```\n\nPublish the package.\n```bash\nartisan vendor:publish srph/laravel-antispam\n```\n\nConfigure the package located in `config/packages/antispam/app.php`.\n\n## Usage\nGo to your form, then add the required inputs.\n```html\n\u003cform\u003e\n\t\u003c!-- Generates a hidden input --\u003e\n\t{{ AntiSpam::getInput() }}\n\n\t\u003clabel\u003e{{ AntiSpam::getQuestion() }}\u003c/label\u003e\n\n\t\u003c!-- This field can have any name --\u003e\n\t\u003cinput type=\"text\" name=\"antispam\"\u003e\n\u003c/form\u003e\n```\n\nAdd the validation rule `antispam` to the antispam input.\n```php\n$input = ['antispam' =\u003e Input::get('antispam')];\n$rules = ['antispam' =\u003e 'required|antispam'];\nValidator::make($input, $rules);\n```\n\nYou should be good to go ;).\n\n## Dropped and Unmaintained\nThis project never got published, and is no longer maintained.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrph%2Flaravel-antispam","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsrph%2Flaravel-antispam","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrph%2Flaravel-antispam/lists"}