{"id":37235309,"url":"https://github.com/jk/monolog-request-header-processor","last_synced_at":"2026-01-16T04:47:07.379Z","repository":{"id":56999617,"uuid":"101643985","full_name":"jk/monolog-request-header-processor","owner":"jk","description":"Monolog processor which injects HTTP request headers into the log","archived":false,"fork":false,"pushed_at":"2017-08-28T13:17:42.000Z","size":4,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-09T08:23:41.815Z","etag":null,"topics":["header","http","logging","monolog","processor","request-header"],"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/jk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-28T13:06:31.000Z","updated_at":"2023-11-18T17:38:12.000Z","dependencies_parsed_at":"2022-08-21T11:40:38.274Z","dependency_job_id":null,"html_url":"https://github.com/jk/monolog-request-header-processor","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/jk/monolog-request-header-processor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jk%2Fmonolog-request-header-processor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jk%2Fmonolog-request-header-processor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jk%2Fmonolog-request-header-processor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jk%2Fmonolog-request-header-processor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jk","download_url":"https://codeload.github.com/jk/monolog-request-header-processor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jk%2Fmonolog-request-header-processor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28420224,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["header","http","logging","monolog","processor","request-header"],"created_at":"2026-01-15T04:01:28.949Z","updated_at":"2026-01-15T04:01:29.448Z","avatar_url":"https://github.com/jk.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Request Header Monolog Processor\nI needed something to log and debug my Amazon Alexa skill which sends POST request to my server. So here it is.\n\n## How to use it\n\n```php\nuse Monolog\\Logger;\n\n$log = new Monolog\\Logger('test');\n$log-\u003epushProcessor(new \\JK\\Monolog\\Processor\\RequestHeaderProcessor());\n$log-\u003epushHandler(…);\n\n$log-\u003enotice('Noticed something');\n```\n\n## Sample output\nThis is the sample output of a normal GET request\n\n```plain\n[2017-08-28 13:04:09] test.NOTICE: Noticed something [] {\"Host\":\"localhost\",\"Connection\":\"keep-alive\",\"Cache-Control\":\"max-age=0\",\"Upgrade-Insecure-Requests\":\"1\",\"User-Agent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.101 Safari/537.36\",\"Accept\":\"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\",\"DNT\":\"1\",\"Accept-Encoding\":\"gzip, deflate, br\",\"Accept-Language\":\"de-DE,de;q=0.8,en-US;q=0.6,en;q=0.4\"}\n```\n\nSo the extra information in pretty print is:\n\n```json\n{  \n\t\"Host\":\"localhost\",\n\t\"Connection\":\"keep-alive\",\n\t\"Cache-Control\":\"max-age=0\",\n\t\"Upgrade-Insecure-Requests\":\"1\",\n\t\"User-Agent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.101 Safari/537.36\",\n\t\"Accept\":\"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\",\n\t\"DNT\":\"1\",\n\t\"Accept-Encoding\":\"gzip, deflate, br\",\n\t\"Accept-Language\":\"de-DE,de;q=0.8,en-US;q=0.6,en;q=0.4\"\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjk%2Fmonolog-request-header-processor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjk%2Fmonolog-request-header-processor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjk%2Fmonolog-request-header-processor/lists"}