{"repo":"YorCreative/Laravel-Scrubber","free":true,"listed":false,"github":"https://github.com/YorCreative/Laravel-Scrubber","clone":"git clone https://github.com/YorCreative/Laravel-Scrubber.git","description":"A Laravel package to scrub sensitive information that breaks operational security policies from being leaked on accident or not by developers.","language":"PHP","stars":158,"topics":["data-sanitization","laravel","laravel-package","scrubber","security-tools","sensitive-data-security","data-scrubber","log-sanitization","log-scrubber","cybersecurity"],"license":"MIT","category":"security-tools","readme_excerpt":"Laravel Scrubber A Laravel package to scrub sensitive information that breaks operational security policies from being leaked on accident or not by developers. Requirements - PHP 8.2, 8.3, 8.4, or 8.5 - Laravel 10.x, 11.x, 12.x, or 13.x Installation install the package via composer: Publish the packages assets. Configuration Adjust the configuration file to suite your application, located in /config/scrubber.php . Usage The scrubber can be utilized in two ways, the first one being a Log scrubber. A tap is added to detect and sanitize any sensitive information from hitting a log file. The second way is to integrate into your application and utilize the Scrubber directly. This way is particular useful if you, for example, would like to detect and sanitize any messages on a messaging platform. Logging Detection & Sanitization Direct Usage for Detection & Sanitization Detection Statistics API Track what patterns are matching and how often: Events The scrubber can dispatch a SensitiveDataDetected event each time a pattern matches during scrubbing. This is useful for alerting, metrics, or audit logging. Enable events in your config: The event carries three public properties: Property Type Description ---------- ------ ------------- patternName string The class basename of the matched pattern (e.g. JsonWebToken ) hitCount int Number of matches found for that pattern in the content context string Either log (triggered via log tap) or manual (triggered via Scrubber::processMessage() )","default_branch":null,"files":null,"tree":[],"storefront":"/r/YorCreative","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/YorCreative/Laravel-Scrubber/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}