{"id":36294062,"url":"https://github.com/dewanakl/aman","last_synced_at":"2026-01-11T10:01:35.856Z","repository":{"id":214205479,"uuid":"735970884","full_name":"dewanakl/aman","owner":"dewanakl","description":"🤬 Filter kata kotor sederhana dengan regex. Cek, sensor, dan hapus kata kasar dengan pola karakter mirip.","archived":false,"fork":false,"pushed_at":"2025-06-25T01:51:19.000Z","size":88,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-06T04:54:11.292Z","etag":null,"topics":["bad-words","content-moderation","filter","input-sanitization","kata-kotor","moderation-tools","php","profanity","profanity-filter","regex","regex-filters","safe-text","string-processing","text-censorship","text-cleaning","text-filter","text-processing","text-sanitizer","text-validation","word-filter"],"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/dewanakl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-12-26T15:57:31.000Z","updated_at":"2025-06-25T01:49:34.000Z","dependencies_parsed_at":"2025-06-25T02:33:57.143Z","dependency_job_id":"8f2926bc-ae3a-4da9-a511-ef9c2ad185f5","html_url":"https://github.com/dewanakl/aman","commit_stats":null,"previous_names":["dewanakl/aman"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/dewanakl/aman","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dewanakl%2Faman","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dewanakl%2Faman/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dewanakl%2Faman/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dewanakl%2Faman/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dewanakl","download_url":"https://codeload.github.com/dewanakl/aman/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dewanakl%2Faman/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28299709,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T08:21:30.231Z","status":"ssl_error","status_checked_at":"2026-01-11T08:21:26.882Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["bad-words","content-moderation","filter","input-sanitization","kata-kotor","moderation-tools","php","profanity","profanity-filter","regex","regex-filters","safe-text","string-processing","text-censorship","text-cleaning","text-filter","text-processing","text-sanitizer","text-validation","word-filter"],"created_at":"2026-01-11T10:01:19.724Z","updated_at":"2026-01-11T10:01:35.846Z","avatar_url":"https://github.com/dewanakl.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/dewanakl/aman/main/img/aman.png\" width=\"200\" alt=\"aman\"\u003e\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://php.net\"\u003e\u003cimg src=\"https://img.shields.io/packagist/dependency-v/kamu/aman/php.svg?color=brightgreen\" alt=\"PHP Programming Language\"\u003e\u003c/a\u003e\n\u003ca href=\"https://packagist.org/packages/kamu/aman\"\u003e\u003cimg src=\"https://img.shields.io/packagist/dt/kamu/aman\" alt=\"Total Downloads\"\u003e\u003c/a\u003e\n\u003ca href=\"https://cie.my.id\"\u003e\u003cimg src=\"https://cie.my.id/aman?label=views\u0026color=brightgreen\" alt=\"views\"\u003e\u003c/a\u003e\n\u003ca href=\"https://shields.io\"\u003e\u003cimg src=\"https://img.shields.io/github/repo-size/dewanakl/aman?color=brightgreen\" alt=\"Repo size\"\u003e\u003c/a\u003e\n\u003ca href=\"https://packagist.org/packages/kamu/aman\"\u003e\u003cimg src=\"https://img.shields.io/packagist/l/kamu/aman?color=brightgreen\" alt=\"License\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n# 🤬 Simple Profanity Filter\n\nThis is a simple project that filters out profane words using regex in PHP. It provides functions to check, get, mask, and remove unwanted words from a text using regex patterns that account for similar characters.\n\n## 📦 Installation\n\n1. Run the following command in your project directory:\n\n   ```bash\n   composer require kamu/aman\n   ```\n\n2. How to Add Blocklist or Allowlist Words\n\n    ```php\n    // Add words to the blocklist\n    Aman::extend(['oke', 'safe']);\n\n    // Add words to the whitelist\n    Aman::allow(['oke', 'safe']);\n    ```\n\n## 🛠️ Usage\n\n1. Check for Profane Words\n\n    ```php\n    use Kamu\\Aman;\n\n    $text = \"This is an example with bad words.\";\n    $filter = Aman::factory();\n\n    if ($filter-\u003echeck($text)) {\n        echo \"This text contains profanity.\";\n    } else {\n        echo \"This text is clean.\";\n    }\n    ```\n\n2. Mask Profane Words\n\n    ```php\n    $text = \"This is an example with bad words.\";\n    $maskedText = $filter-\u003emasking($text, '*');\n    echo $maskedText; // Output: \"This is an example with *** ****.\"\n    ```\n\n3. Remove Profane Words\n\n    ```php\n    $text = \"This is an example with bad words.\";\n    $cleanText = $filter-\u003efilter($text);\n    echo $cleanText; // Output: \"This is an example with .\"\n    ```\n\n4. Get Profane Words from Text\n\n    ```php\n    $text = \"This is an example with bad words.\";\n    $badWords = $filter-\u003ewords($text);\n    print_r($badWords); // Output: ['bad', 'words']\n    ```\n\n## 🤝 Contributing\n\nI'm very open to those of you who want to contribute to the Aman!\n\n## 🐞 Security Vulnerabilities\n\nIf you find any security vulnerabilities in this Aman, please email DKL via [dewanakretarta29@gmail.com](mailto:dewanakretarta29@gmail.com).\n\n## 📜 License\n\nAman is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdewanakl%2Faman","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdewanakl%2Faman","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdewanakl%2Faman/lists"}