{"id":19892963,"url":"https://github.com/labymod/discord-webhook","last_synced_at":"2025-05-02T19:30:31.223Z","repository":{"id":44801100,"uuid":"159135625","full_name":"LabyMod/discord-webhook","owner":"LabyMod","description":"A lightweight library for Discord™ Webhooks","archived":false,"fork":false,"pushed_at":"2022-05-04T11:01:22.000Z","size":179,"stargazers_count":11,"open_issues_count":3,"forks_count":6,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-02T11:51:53.218Z","etag":null,"topics":["discord","php","webhook"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/labymod/discord-webhook","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/LabyMod.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":".github/CODEOWNERS","security":null,"support":null}},"created_at":"2018-11-26T08:30:06.000Z","updated_at":"2024-09-03T09:50:42.000Z","dependencies_parsed_at":"2022-09-19T20:23:34.582Z","dependency_job_id":null,"html_url":"https://github.com/LabyMod/discord-webhook","commit_stats":null,"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LabyMod%2Fdiscord-webhook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LabyMod%2Fdiscord-webhook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LabyMod%2Fdiscord-webhook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LabyMod%2Fdiscord-webhook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LabyMod","download_url":"https://codeload.github.com/LabyMod/discord-webhook/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224326928,"owners_count":17292962,"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","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","php","webhook"],"created_at":"2024-11-12T18:26:24.142Z","updated_at":"2024-11-12T18:26:24.690Z","avatar_url":"https://github.com/LabyMod.png","language":"PHP","readme":"# Discord Webhook\n[![Latest Stable Version](https://poser.pugx.org/labymod/discord-webhook/v)](https://packagist.org/packages/labymod/discord-webhook)\n[![Latest Unstable Version](https://poser.pugx.org/labymod/discord-webhook/v/unstable)](https://packagist.org/packages/labymod/discord-webhook)\n[![Total Downloads](https://poser.pugx.org/labymod/discord-webhook/downloads)](https://packagist.org/packages/labymod/discord-webhook)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/LabyMod/discord-webhook/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/LabyMod/discord-webhook/?branch=master)\n[![License](https://poser.pugx.org/labymod/discord-webhook/license)](https://packagist.org/packages/labymod/discord-webhook)\n\nSend Discord messages directly from your PHP application. Even with embeds \u0026 files!\n\n## Versions \u0026 Compatibility\n\n| Release | Supported PHP Versions | Supported Symfony Versions   | Release Date | Maintained | Branch |\n|---------|------------------------|------------------------------|--------------|------------|--------|\n| 3.x     | `^8.1`                 | `^4.4.35`, `^5.3.12`, `^6.0` | 23.01.2022   | Yes        | master |\n| 2.x     | `^8.0`                 | `^4.4.35`, `^5.3.12`, `^6.0` | 23.01.2022   | Yes        | 2.x    |\n| 1.x     | `^7.3`, `^8.0`         | `^3.0`, `^4.0`, `^5.0`       | 05.01.2020   | No         | 1.x    |\n\n## Installation\n\n**Composer installation**\n```bash\ncomposer require labymod/discord-webhook\n```\n\n## Documentation\nHop into the wonderful world of webhooks with just those few lines:\n```php\nuse DiscordWebhook\\Webhook;\n\n$wh = new Webhook('https://my.webhook/url');\n$wh\n    -\u003esetMessage('Hello world!')\n    -\u003esend();\n```\n\n### ✨ NEW: Simple Webhooks\n\u003e **First** (recommended but optional): Define the `DWH_DEFAULT_URL` as environment variable\n\n```php\nuse DiscordWebhook\\SimpleWebhook;\n\n// with environment variable defined:\nSimpleWebhook::sendMessage('My simple message.');\n\n// without environment variable defined (or to override the already set env var):\nSimpleWebhook::sendMessage('My simple message.', 'https://discord.com/my/webhook/url');\n```\n\nFor further documentation have a look here:\n* [Basics](docs/01_Basics.md)\n* [Sending Files](docs/02_SendingFiles.md)\n* [Embeds](docs/03_Embeds.md)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flabymod%2Fdiscord-webhook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flabymod%2Fdiscord-webhook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flabymod%2Fdiscord-webhook/lists"}