{"id":16292422,"url":"https://github.com/cleantalk/yii-antispam","last_synced_at":"2025-10-12T21:38:22.259Z","repository":{"id":17322448,"uuid":"20093396","full_name":"CleanTalk/yii-antispam","owner":"CleanTalk","description":"Anit-spam extension for Yii framework.","archived":false,"fork":false,"pushed_at":"2024-10-04T11:35:50.000Z","size":25,"stargazers_count":16,"open_issues_count":0,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-10-12T21:38:18.833Z","etag":null,"topics":["anti-spam","antispam","php","spam-filtering","spam-protection","yii-antispam","yii-extension"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"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/CleanTalk.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":"2014-05-23T09:05:27.000Z","updated_at":"2025-10-06T08:59:08.000Z","dependencies_parsed_at":"2024-10-27T21:44:24.574Z","dependency_job_id":"7160c17a-fdf7-4415-8424-8c3481ff22c7","html_url":"https://github.com/CleanTalk/yii-antispam","commit_stats":{"total_commits":25,"total_committers":4,"mean_commits":6.25,"dds":0.28,"last_synced_commit":"dbb78f792750cb9a9f97e6351d75227356bc047d"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/CleanTalk/yii-antispam","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CleanTalk%2Fyii-antispam","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CleanTalk%2Fyii-antispam/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CleanTalk%2Fyii-antispam/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CleanTalk%2Fyii-antispam/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CleanTalk","download_url":"https://codeload.github.com/CleanTalk/yii-antispam/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CleanTalk%2Fyii-antispam/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279013124,"owners_count":26085232,"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","status":"online","status_checked_at":"2025-10-12T02:00:06.719Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["anti-spam","antispam","php","spam-filtering","spam-protection","yii-antispam","yii-extension"],"created_at":"2024-10-10T20:06:30.712Z","updated_at":"2025-10-12T21:38:22.230Z","avatar_url":"https://github.com/CleanTalk.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"##Yii-antispam\nAnti-spam by CleanTalk extension with protection against spam bots and manual spam.\n\nNo Captcha, no questions, no counting animals, no puzzles, no math.\n\n[![Build Status](https://travis-ci.org/CleanTalk/yii-antispam.svg)](https://travis-ci.org/cleantalk/yii-antispam)\n\n## Requirements\n\n* Yii 1.1 or above\n* CleanTalk account https://cleantalk.org/register?product=anti-spam\n\n##Usage\n\n1) Get access key on https://cleantalk.org/register?platform=yii\n\n2) Extract content from archive under protected/extensions/yii-antispam\n\n3) Open your application configuration in protected/config/main.php and modify components section:\n~~~\n// application components\n'components'=\u003earray(\n    ...\n        'cleanTalk'=\u003earray(\n            'class'=\u003e'ext.yii-antispam.CleanTalkApi',\n            'apiKey'=\u003e'*****',\n        ),\n    ...\n),\n~~~\n4) Add validator in your model, for example ContactForm\n~~~\nclass ContactForm extends CFormModel\n{\n    public $name;\n    public $email;\n    public $body;\n    ...\n    public function rules()\n    {\n        return array(\n            ...\n            array('body', \n                    'ext.yii-antispam.CleanTalkValidator', \n                    'check'=\u003e'message', /* Check type message or user */\n                    'emailAttribute'=\u003e'email',  \n                    'nickNameAttribute'=\u003e'name',\n                    /*'on'=\u003e'insert' if ActiveRecord using */),\n            ...\n        );\n    }\n    ...\n}\n~~~\n5) In form view add special hidden element\n~~~\n\u003c?php $form=$this-\u003ebeginWidget('CActiveForm', array(\n    ...\n    \u003c?php echo Yii::app()-\u003ecleanTalk-\u003echeckJsHiddenField()?\u003e\n    ...\n    \u003c?php echo CHtml::submitButton('Submit'); ?\u003e\n    ...\n\u003c?php $this-\u003eendWidget(); ?\u003e\n\n~~~\n\n##License\nGNU General Public License\n\n##Resources\n\n * https://cleantalk.org/\n * https://github.com/CleanTalk/yii-antispam\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcleantalk%2Fyii-antispam","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcleantalk%2Fyii-antispam","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcleantalk%2Fyii-antispam/lists"}