promptphp/intercept-pii-redactor
Redacts personally identifiable information from prompts before they reach an LLM. This PromptPHP intercept scans outgoing text and masks emails, phone numbers, and other PII, helping Laravel apps keep sensitive data out of third-party AI requests.
promptphp/intercept, versioned independently of the parent. That is a real dependency-modelling input: you are adopting a distribution artifact, not a standalone project. Roadmap implication — decide up front whether you consume the split (just PII redaction) or the parent suite, because migrating later costs more than choosing correctly now.intercept-source: 73ed9bb…). Treat it as a maintenance signal only: the split tracks the parent's commit, nothing more. Do not schedule work against it; do use it as a prompt to pin exact versions so the split and parent cannot drift silently.Adopt when most of the following hold:
Look elsewhere when:
promptphp/intercept — if you want the broader interception suite, adopting the split now means a later migration.To executives: We have an obligation to stop personal data leaking into systems we do not fully control — logs, error trackers, analytics, AI vendors. This is a small, focused Laravel component that strips that data at the point it leaves our application. It converts an open compliance finding into a bounded, one-off integration instead of a recurring engineering tax. Cost is low and reversible; the downside risk of not doing it (breach notification, regulator inquiry, DPA breach) is asymmetric. Caveat to state plainly: it handles structured identifiers well, it is not a complete privacy programme, and it does not replace encryption at rest.
To engineering: It is a drop-in Laravel package that redacts PII at an interception point, so correctness does not depend on every developer remembering to call a helper. Two things to internalise before we merge it:
promptphp/intercept. Pin exact versions, do not patch it in place, and track the parent repo for actual changes — the release notes we have here are only a commit pointer, so our dependency-update process has to supply the changelog that the package does not.Recommendation: adopt for structured PII in logs and outbound third-party calls, behind a short spike that measures false negatives on representative payloads. Reassess if requirements shift toward semantic detection or reversible tokenization.
How can I help you explore Laravel packages today?