{"id":19943710,"url":"https://github.com/rndoom04/spamdetector","last_synced_at":"2026-04-21T13:04:04.009Z","repository":{"id":62536429,"uuid":"459934839","full_name":"Rndoom04/spamdetector","owner":"Rndoom04","description":"Spam detector library for php7.0+","archived":false,"fork":false,"pushed_at":"2022-05-19T18:12:34.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-12T05:09:47.675Z","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/Rndoom04.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":"2022-02-16T09:27:47.000Z","updated_at":"2022-02-16T10:07:01.000Z","dependencies_parsed_at":"2022-11-02T15:15:25.172Z","dependency_job_id":null,"html_url":"https://github.com/Rndoom04/spamdetector","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rndoom04%2Fspamdetector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rndoom04%2Fspamdetector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rndoom04%2Fspamdetector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rndoom04%2Fspamdetector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Rndoom04","download_url":"https://codeload.github.com/Rndoom04/spamdetector/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241370008,"owners_count":19951850,"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-11-13T00:17:44.907Z","updated_at":"2026-04-21T13:03:58.938Z","avatar_url":"https://github.com/Rndoom04.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"SpamDetector\n=============\n\nPHP `test()`. Compatible with PHP \u003e= 7.0.\n\nThis is a simple library for detect spam from string - good for example contacts forms\n\n## Install\n\nFor PHP version **`\u003e= 7.0`**:\n\n```\ncomposer require Rndoom04/spamdetector\n```\n\n## How to use it\n\nFirstly init the library by simply \"use\".\n\n```\nuse Rndoom04\\spamdetector;\n```\n\nThen set load the library and set it how you want.\n```\n$spamdetector = new \\Rndoom04\\spamdetector\\detector();\n\n$spamdetector-\u003edetectLanguage(true); // Detect language? Default false\n$spamdetector-\u003esetLanguageWhitelist([\"cs\", \"sk\", \"en\"]); // Only cs (czech language), sk (slovak language) and en (english)\n$spamdetector-\u003esetTestForbiddenWords(true); // Test on forbidden words? Default true\n$spamdetector-\u003esetTestUrls(true); // Test on URLs? Default true\n```\n\nEasy! Let's test detecting.\n```\n// One test\necho $spamdetector-\u003etest(\"Is this string ok?\");\n```\n```\n// Variable test\n$testString = \"Is this next string ok?\";\necho $spamdetector-\u003etest($testString);\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frndoom04%2Fspamdetector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frndoom04%2Fspamdetector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frndoom04%2Fspamdetector/lists"}