{"id":33977609,"url":"https://github.com/stephan-strate/monolog-discord","last_synced_at":"2026-04-18T23:04:37.092Z","repository":{"id":37240591,"uuid":"427903268","full_name":"stephan-strate/monolog-discord","owner":"stephan-strate","description":":black_nib: Simple monolog handler to send your logs to Discords webhooks.","archived":false,"fork":false,"pushed_at":"2024-07-10T21:37:36.000Z","size":91,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-23T20:04:52.109Z","etag":null,"topics":["discord","logging","monolog","monolog-handler","php"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/stephan-strate/monolog-discord","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/stephan-strate.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":["stephan-strate"]}},"created_at":"2021-11-14T10:55:43.000Z","updated_at":"2024-05-08T06:12:39.000Z","dependencies_parsed_at":"2024-05-08T07:28:38.796Z","dependency_job_id":"a917fb85-8f92-47a0-acae-fd2b047b86e2","html_url":"https://github.com/stephan-strate/monolog-discord","commit_stats":{"total_commits":21,"total_committers":2,"mean_commits":10.5,"dds":"0.47619047619047616","last_synced_commit":"1ce448d3c86c09fa9d0889c8e1daa6ff26c810bd"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/stephan-strate/monolog-discord","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephan-strate%2Fmonolog-discord","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephan-strate%2Fmonolog-discord/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephan-strate%2Fmonolog-discord/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephan-strate%2Fmonolog-discord/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stephan-strate","download_url":"https://codeload.github.com/stephan-strate/monolog-discord/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephan-strate%2Fmonolog-discord/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27698682,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-13T02:00:09.769Z","response_time":147,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["discord","logging","monolog","monolog-handler","php"],"created_at":"2025-12-13T02:29:22.130Z","updated_at":"2025-12-13T02:29:26.838Z","avatar_url":"https://github.com/stephan-strate.png","language":"PHP","funding_links":["https://github.com/sponsors/stephan-strate"],"categories":[],"sub_categories":[],"readme":"![Packagist Version](https://img.shields.io/packagist/v/stephan-strate/monolog-discord)\n[![GitHub license](https://img.shields.io/github/license/stephan-strate/monolog-discord)](https://github.com/stephan-strate/monolog-discord/blob/master/LICENSE)\n![GitHub Workflow Status (branch)](https://img.shields.io/github/workflow/status/stephan-strate/monolog-discord/CI/master?label=ci)\n\n# Monolog Discord Handler\n\nSimple monolog handler to send your logs to Discords webhooks. You may ask yourself \"Why another Discord handler? There are already plenty out there...\" and you are right. There are [lefuturiste/monolog-discord-handler](https://github.com/lefuturiste/monolog-discord-handler) and [den1008/monolog-discord-handler](https://github.com/den1008/monolog-discord-handler) to only name two of them. What they all have in common is, they require [guzzlehttp](https://github.com/guzzle/guzzle). Don't get me wrong. guzzlehttp is a great library, but kinda huge for sending one simple request to Discords webhooks. Unfortunately the existing Discord handlers dependencies are also not really up to date. With help of dependabot I will keep the handler up to date and release regular maintenance updates.\n\n## Installation\n\nUsing composer:\n\n```\n$ composer require stephan-strate/monlog-discord\n```\n\n## Usage\n\n### Create handler\n\nThe webhook url can be obtained by following this [tutorial](https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks) by discord.\n\n```php\n$handler = new Strate\\Monolog\\DiscordHandler('https://discord.com/api/webhooks/{webhook.id}/{webhook.token}', Logger::WARNING)\n```\n\n### Add handler to Monolog\n\n```php\n$log = new Monolog\\Logger();\n$log-\u003epushHandler(handler);\n```\n\n## Help \u0026 Donate\n\nI am very curious about projects that use my libraries. Please drop me a short message about what you use the library for. You can find my contact information on my profile (LinkedIn, E-mail).\n\nIf this project saved you time and money or you just appreciate what I am doing, please consider sponsoring me 😊\n\n## Acknowledgment\n\nThis library was mainly created to resolve conflicting dependencies, which occured with my plugin [stephan-strate/grav-plugin-logger-channels](https://github.com/stephan-strate/grav-plugin-logger-channels) in combination with some other plugins of the [Grav](https://getgrav.org/) ecosystem.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstephan-strate%2Fmonolog-discord","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstephan-strate%2Fmonolog-discord","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstephan-strate%2Fmonolog-discord/lists"}