Download the PHP package ksardv/php-log-sanitizer without Composer
On this page you can find all versions of the php package ksardv/php-log-sanitizer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package php-log-sanitizer
PHP Log Sanitizer
A lightweight, framework-agnostic PHP library for automatically masking sensitive data in logs. Useful for privacy compliance (e.g., GDPR, PCI DSS) and secure debugging.
- ✅ Framework-agnostic — works with any PHP project
- ✅ Format-aware — supports plain text, JSON, XML
- ✅ Regex-based masking with override support
- ✅ Ships with secure defaults (emails, passwords, API keys, etc.)
- ✅ Configurable via external
mask.php
pattern file - ✅ No Monolog or PSR-3 required
- ✅ Modern PHP 8.0+ (typed properties, constructor promotion)
🚀 Installation
Install via Composer:
🧩 Framework Integration
Laravel
You can use php-log-sanitizer
in Laravel without any special service provider or package.
Basic usage in a custom log processor:
📁 Examples Directory
See the examples/
folder for real code:
text.php
– raw string sanitizationjson.php
– structured JSON maskingxml.php
– XML sanitizationadd_pattern.php
– how to define custom rules
All versions of php-log-sanitizer with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.0
The package ksardv/php-log-sanitizer contains the following files
Loading the files please wait ....