Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Profanity Filter Laravel Package

waad/laravel-profanity-filter

View on GitHub
Deep Wiki
Context7
v1.2.0

Add real-time management for custom profanity words in ProfanityFilter

  • Implemented addWords, removeWords, clearWords, and getWords methods for dynamic profanity word management.
  • Updated README with usage examples for the new methods.
  • Enhanced tests to cover real-time word management functionality and error handling for invalid languages.
v1.1.0

Introduces a new feature that allows users to import profanity words from external JSON or TXT files at runtime and merge them into the word list for a specified language. This enhancement makes it easier to update or extend the profanity filter without modifying configuration files or code.

Key changes:

  • Added importWordsFromFile($filePath, $lang) method to ProfanityFilter for importing words from JSON or TXT files.
  • Updated the Facade docblock to include the new method for static usage.
  • Added tests to verify importing words from both TXT and JSON files.
  • Supports merging imported words into the current word list for the selected language.

Benefits:

  • Simplifies bulk updates and integration with external word sources.
  • No need to redeploy or edit config files for large or frequently updated word lists.
  • Supports both JSON (array of words) and TXT (one word per line) formats.
v1.0.0
  • Multi-language support: Detects profanity in English, French, Arabic, and more
  • Customizable masking: Replace profane words with your own masking character(s)
  • Leet speak & substitutions: Detects obfuscated words (e.g., "f@ck", "sh!t", "d4mn")
  • Custom word lists: Add or override profane words per language
  • Case sensitivity: Toggle case-sensitive or insensitive detection
  • Separator handling: Detects words with separators (e.g., d-a-m-n, s_h_i_t)
  • Laravel integration: Seamless usage via Facade, Service Provider, and config
  • Real-time configuration: Update settings and word lists at runtime
  • Extensible: Easily add new languages, separators, or substitutions
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
besmartand-pro/php-quality-config
sentix/ai-chatbot
terminal42/code-quality-tools
codifyo/ts-generator-bundle
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity