tourze/sensitive-text-detect-bundle
A Symfony bundle that integrates sensitive-text detection services and configuration, letting applications scan strings for blocked or sensitive words. Useful for content moderation, form validation, and comment filtering.
Consider it when:
Look elsewhere when:
To executives: We can satisfy the baseline "screen user-generated text" requirement with a small open-source PHP component rather than a moderation vendor contract. That means no usage-based COGS, no new third-party data sharing, no procurement cycle, and a realistic path to shipping the feature this cycle. Read it as a floor, not a solution: it catches known terms, not intent, and it won't handle obfuscation or non-text media. The strategic value is optionality — we get real flag-volume and false-positive data to justify (or avoid) a paid vendor later. The main risk is maturity: the package is early-stage, documentation is thin, and the latest release (1.1.0) shipped without a usable changelog, so I'd pin the current version in production and trial 1.1.0 behind a feature flag.
To engineering: This is a contained integration — a dependency, a ruleset we own in config, and a service call at the write path, with no new infrastructure or network hop. Keep it behind an interface so we can swap in a vendor or a model without touching call sites, define the flag/no-flag response contract up front (block, mask, queue-for-review), and log decisions with the rule that matched so we can tune. Two asks: treat the ruleset as versioned configuration with its own review, and put a performance and false-positive baseline in place before we scale volume. And do not auto-merge the 1.1.0 bump — diff the upstream changes and review them as we would any third-party code.
How can I help you explore Laravel packages today?