{"id":20144169,"url":"https://github.com/quansitech/qs-sensitive","last_synced_at":"2025-06-13T13:34:33.031Z","repository":{"id":62531958,"uuid":"253979790","full_name":"quansitech/qs-sensitive","owner":"quansitech","description":"敏感词过滤","archived":false,"fork":false,"pushed_at":"2020-10-23T07:47:06.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-09-18T00:05:14.192Z","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/quansitech.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":"2020-04-08T03:52:45.000Z","updated_at":"2020-10-23T07:45:53.000Z","dependencies_parsed_at":"2022-11-02T15:45:59.331Z","dependency_job_id":null,"html_url":"https://github.com/quansitech/qs-sensitive","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quansitech%2Fqs-sensitive","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quansitech%2Fqs-sensitive/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quansitech%2Fqs-sensitive/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quansitech%2Fqs-sensitive/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/quansitech","download_url":"https://codeload.github.com/quansitech/qs-sensitive/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241587914,"owners_count":19986627,"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-13T22:09:03.878Z","updated_at":"2025-03-02T23:44:08.995Z","avatar_url":"https://github.com/quansitech.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 敏感词过滤\n\n## 安装\n```php\ncomposer require quansitech/qs-sensitive\n```\n\n## 用法\n```php\n$sensitive = new Senstive();\n$txt = \"你是不是傻\u0026吊。。。\";\n$words = $sensitive-\u003efilter($txt);\n\necho $words; // 你是不是***。。。\n```\n\n自定义干扰因子和敏感词库\n```php\n$disturbList = ['!', '(', ')'];\n$words = './words.txt';\n$sensitive = new Senstive($disturbList, $words);\n$txt = \"你是不是傻(!)吊。。。\";\n$words = $sensitive-\u003efilter($txt);\n\necho $words; //你是不是*****。。。\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquansitech%2Fqs-sensitive","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fquansitech%2Fqs-sensitive","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquansitech%2Fqs-sensitive/lists"}