Skip to main content

Documentation

The full documentation lives in docs/:

PageWhat it covers
Getting StartedInstallation, the Monolog tap, redact(), inspect(), the fluent builder, profiles and the five that ship.
ConfigurationEvery key in config/redactor.php with its type, default and environment variable; the shipped profiles compared.
RulesPattern rules, validators, keywords, samples, dictionary rules, allow-lists, path rules, safe and blocked keys, known secrets, confidence and how detections are resolved.
Operators and PseudonymisationEvery operator with example output, precedence, surrogates, the key and salt, reversible tokens and detokenize().
BoundariesLog channels, HTTP responses, streams, MCP servers, AI agents, exports and jobs, and the RedactionPerformed event.
Scanningredactor:scan in full: paths, output formats, git modes, decoding, baselines, suppression, verification, the hook and workflow, exit codes.
Entity RecognitionFinding names, places and organisations in prose with a Presidio-compatible recogniser or the in-process redactor-onnx package, and when not to.
TestingRedactor::fake() and its assertions, redactor:validate, rule samples, the package's own test conventions.
ExtendingEvery contract, how to register each, a worked custom strategy and operator, and macros.
UpgradingEvery renamed class and method from 0.1.0, every behaviour change, and what to do about each.