blaspsoft/blasp
Advanced profanity filtering for Laravel with driver-based detection (regex/pattern/phonetic/pipeline), multi-language support, severity scoring, masking strategies, Eloquent trait, middleware and validation rules, events, and test fakes. Powers blasp.app API.
Blasp::fake(), events) to simulate and audit profanity detection in CI/CD pipelines.Str::contains() + a static list)."Blasp is a turnkey solution to automate profanity filtering across our Laravel apps, reducing manual moderation costs by 60%+ while improving compliance. It handles edge cases like obfuscated slurs (e.g., ‘fck’) and multi-language content without custom dev work. For $0 in licensing (MIT), we get:
Ask: "Should we prioritize this for [high-risk features, e.g., public forums, live chat]?"
*"Blasp replaces ad-hoc regex filters with a maintainable, extensible system:
regex (catches obfuscation), phonetic (sounds-alike), or pipeline (combo) without rewriting logic.use Blaspable; to any model to auto-sanitize/reject profanity on save—no manual validation needed.Blasp::fake() lets us mock profanity detection in unit tests.Trade-offs:
Recommendation: Pilot in [high-impact module, e.g., comments system] to validate ROI before rolling out globally."*
Key Metric to Track: "% of profanity incidents auto-resolved vs. escalated to moderators."
How can I help you explore Laravel packages today?