{"id":15287231,"url":"https://github.com/labymod/discord-webhook-bundle","last_synced_at":"2025-04-13T05:08:23.441Z","repository":{"id":33526230,"uuid":"451639174","full_name":"LabyMod/discord-webhook-bundle","owner":"LabyMod","description":"DiscordWebhookBundle is a Symfony Bundle which provides all common Symfony utilities to work with the labymod/discord-webhook library.","archived":false,"fork":false,"pushed_at":"2022-05-04T11:03:24.000Z","size":33,"stargazers_count":2,"open_issues_count":3,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-13T05:08:16.353Z","etag":null,"topics":["discord","php","symfony","symfony-bundle"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/labymod/discord-webhook-bundle","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":"2022-01-24T21:29:05.000Z","updated_at":"2022-11-28T17:30:11.000Z","dependencies_parsed_at":"2022-08-07T22:00:33.650Z","dependency_job_id":null,"html_url":"https://github.com/LabyMod/discord-webhook-bundle","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LabyMod%2Fdiscord-webhook-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LabyMod%2Fdiscord-webhook-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LabyMod%2Fdiscord-webhook-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LabyMod%2Fdiscord-webhook-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LabyMod","download_url":"https://codeload.github.com/LabyMod/discord-webhook-bundle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248665747,"owners_count":21142123,"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","symfony","symfony-bundle"],"created_at":"2024-09-30T15:27:02.118Z","updated_at":"2025-04-13T05:08:23.422Z","avatar_url":"https://github.com/LabyMod.png","language":"PHP","readme":"# Discord Webhook Bundle\n[![Latest Stable Version](https://poser.pugx.org/labymod/discord-webhook-bundle/v)](https://packagist.org/packages/labymod/discord-webhook-bundle)\n[![Total Downloads](https://poser.pugx.org/labymod/discord-webhook-bundle/downloads)](https://packagist.org/packages/labymod/discord-webhook-bundle)\n[![License](https://poser.pugx.org/labymod/discord-webhook-bundle/license)](https://packagist.org/packages/labymod/discord-webhook-bundle)\n\nSymfony Bundle for [labymod/discord-webhook](https://github.com/LabyMod/discord-webhook). Configure webhooks easily within your Symfony application\n\n## Versions \u0026 Compatibility\n\n| Release | Supported PHP Versions | Supported Symfony Versions | Release Date | Maintained | Branch |\n|---------|------------------------|----------------------------|--------------|------------|--------|\n| 1.x     | `^8.0`                 | `^4.4`, `^5.0`, `^6.0`     | 24.01.2022   | Yes        | master |\n\n## Installation\n\n**Composer installation**\n```bash\ncomposer require labymod/discord-webhook-bundle\n```\n\n## Symfony configuration \u0026 usage\n1. Enable your bundle in `config/bundles.php`:\n    ```php\n    return [\n        // ...\n        \\DiscordWebhookBundle\\DiscordWebhookBundle::class =\u003e ['all' =\u003e true],\n    ]\n    ```\n2. Add a global and/or environment-based configuration file: `config/[env]/discord_webhook.yaml`\n\n### Configuration reference\n```yaml\n# Default configuration\ndiscord_webhook:\n    default_url:          ~ # required, The Webhook URL for the default service.\n    clients:\n        # Prototype\n        name: # choose a name (service-id) for your preconfigured client\n            webhook_url:          ~ # required, The Discord Webhook URL for this client.\n            username:             null # optional, The username for the Discord bot.\n            avatar_url:           null # optional, URL which is used for the Bot avatar.\n```\n\n### Usage\n#### Default Client\nWith `discord_webhook.default_url` configured, the basic service (`DiscordWebhookBundle\\DiscordWebhook`) is configured and publicly available in the service container:\n\n#### Additional named clients\nIf you have configured one or more named clients like below, you can access them in two ways by their name.\n```yaml\ndiscord_webhook\n    # ...\n    clients:\n        announcements.client:\n            webhook_url: 'https://discord.com/my/webhook/url'\n```\n\nNow this client is available as service too:\n```php\nuse DiscordWebhookBundle\\DiscordWebhook;\n\nclass MyController\n{\n   public function myAction(DiscordWebhook $announcementsClient) // \u003c-- Thanks to an ArgumentValueResolver, name the parameter after your client, and it will be resolved automatically\n   {\n      // OR, resolve it from the container:\n      $webhook = $this-\u003econtainer-\u003eget('announcements.client');\n   }\n}\n```\n\n## Documentation\nFor detailed documentation how to use the Webhooks, please refer to the underlying library:\u003cbr\u003e\nhttps://github.com/LabyMod/discord-webhook/blob/master/README.md\n\nFor further documentation have a look here:\n* [Basics](https://github.com/LabyMod/discord-webhook/blob/master/docs/01_Basics.md)\n* [Sending Files](https://github.com/LabyMod/discord-webhook/blob/master/docs/02_SendingFiles.md)\n* [Embeds](https://github.com/LabyMod/discord-webhook/blob/master/docs/03_Embeds.md)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flabymod%2Fdiscord-webhook-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flabymod%2Fdiscord-webhook-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flabymod%2Fdiscord-webhook-bundle/lists"}