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.
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle
atriumphp/atrium
sandermuller/package-boost-laravel
sandermuller/boost-skills
redaxo/core
yusufgenc/filament-api-forge
l3aro/rating-star-for-filament
leek/filament-subtenant-scope