{"id":15025636,"url":"https://github.com/liamja/redaction-handler","last_synced_at":"2026-02-21T10:01:13.393Z","repository":{"id":141777860,"uuid":"147123390","full_name":"liamja/redaction-handler","owner":"liamja","description":"Redact sensitive info from Monolog records","archived":false,"fork":false,"pushed_at":"2018-09-02T21:42:19.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-27T11:45:19.138Z","etag":null,"topics":["gdpr","monolog","monolog-handler","php71","redaction"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/liamja.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-09-02T21:30:58.000Z","updated_at":"2018-09-02T21:42:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"fc097734-8f91-4c76-9a62-3919f6c9e7ea","html_url":"https://github.com/liamja/redaction-handler","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/liamja/redaction-handler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liamja%2Fredaction-handler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liamja%2Fredaction-handler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liamja%2Fredaction-handler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liamja%2Fredaction-handler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/liamja","download_url":"https://codeload.github.com/liamja/redaction-handler/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liamja%2Fredaction-handler/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29679049,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T09:33:50.764Z","status":"ssl_error","status_checked_at":"2026-02-21T09:33:19.949Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gdpr","monolog","monolog-handler","php71","redaction"],"created_at":"2024-09-24T20:02:43.343Z","updated_at":"2026-02-21T10:01:13.303Z","avatar_url":"https://github.com/liamja.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Monolog Redaction Handler\n\n[![Latest Version on Packagist][ico-version]][link-packagist]\n[![Software License][ico-license]](LICENSE.md)\n[![Build Status][ico-travis]][link-travis]\n[![Coverage Status][ico-scrutinizer]][link-scrutinizer]\n[![Quality Score][ico-code-quality]][link-code-quality]\n[![Total Downloads][ico-downloads]][link-downloads]\n\n`RedactionHandler` will strip sensitive method/function arguments from stack traces.\n\n## Installation\n\n```bash\n$ composer require liamja/redaction-handler\n```\n\n## Usage\n\nWrap any handlers you wish redact with the `RedactionHandler`.\n\nThe 2nd argument is an array of function or method names to strip.\n\n```php\n$logger = new Logger('foo');\n$testHandler = new TestHandler();\n$redactionHandler = new RedactionHandler(new TestHandler(), ['checkPassword']);\n\n$logger-\u003epushHandler($redactionHandler);\n\n$password = 'hunter2';\ncheckPassword($password);  // checkPassword(REDACTED) will appear in the log file.\n```\n\n## Changelog\n\nPlease see [CHANGELOG.md]() for more information on what has changed recently.\n\n## Testing\n\n```shell\ncomposer test\n```\n\n## License\n\nReleased under an MIT license.\nSee [LICENSE.md]() for more info.\n\n[ico-version]: https://img.shields.io/packagist/v/liamja/redaction-handler.svg?style=flat-square\n[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square\n[ico-travis]: https://img.shields.io/travis/liamja/redaction-handler/master.svg?style=flat-square\n[ico-scrutinizer]: https://img.shields.io/scrutinizer/coverage/g/liamja/redaction-handler.svg?style=flat-square\n[ico-code-quality]: https://img.shields.io/scrutinizer/g/liamja/redaction-handler.svg?style=flat-square\n[ico-downloads]: https://img.shields.io/packagist/dt/liamja/redaction-handler.svg?style=flat-square\n\n[link-packagist]: https://packagist.org/packages/liamja/redaction-handler\n[link-travis]: https://travis-ci.org/liamja/redaction-handler\n[link-scrutinizer]: https://scrutinizer-ci.com/g/liamja/redaction-handler/code-structure\n[link-code-quality]: https://scrutinizer-ci.com/g/liamja/redaction-handler\n[link-downloads]: https://packagist.org/packages/liamja/redaction-handler\n[link-author]: https://github.com/liamja\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliamja%2Fredaction-handler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fliamja%2Fredaction-handler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliamja%2Fredaction-handler/lists"}