lucajackal85/pii-sanitizer-php
Detect and redact personally identifiable information in PHP and Laravel applications. This package helps sanitize emails, phone numbers, names, and other sensitive data before logging, storing, or sharing, using configurable rules to reduce privacy and compliance risk.
Consider it when:
Jackal\PiiSanitizer. Any v0.1.x integration must update imports and be re-tested. Treat the public API as unstable and pin the version explicitly.Look elsewhere when:
To executives: This is a small, low-cost dependency that gives us a defensible answer to "where does customer data end up?" It reduces the volume of personal data sitting in logs and analytics, which lowers breach exposure and shrinks the work involved in deletion and access requests. It is not a compliance certification and does not replace legal or security review — it is one concrete control that makes our privacy commitments easier to honor and easier to evidence in customer security reviews.
To engineering: Narrow surface area, integrates at the logging/serialization boundary. The tradeoff is maturity: v0.2.0 is a namespace rename to Jackal\PiiSanitizer, a breaking change with no deprecation path, which tells you the API is still settling. Pin the version, wrap it behind our own thin redaction interface so a future rename or replacement is a one-file change, and add a test that asserts known-sensitive fixtures are actually stripped before this counts as a working control. Budget a small amount of recurring maintenance for rule coverage — redaction that silently misses a field is worse than no redaction, because it creates false assurance.
How can I help you explore Laravel packages today?