{"id":25284070,"url":"https://github.com/ccaglayan/discord-webhooks-php","last_synced_at":"2026-05-18T11:06:09.002Z","repository":{"id":62500297,"uuid":"162723305","full_name":"ccaglayan/discord-webhooks-php","owner":"ccaglayan","description":null,"archived":false,"fork":false,"pushed_at":"2019-03-11T21:30:31.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-25T09:35:55.363Z","etag":null,"topics":["discord","discord-webhook-api","discord-webhook-notifications","discord-webhooks","php","webhook","webhooks"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ccaglayan.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":"2018-12-21T14:28:36.000Z","updated_at":"2020-04-03T12:40:17.000Z","dependencies_parsed_at":"2022-11-02T12:01:25.814Z","dependency_job_id":null,"html_url":"https://github.com/ccaglayan/discord-webhooks-php","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ccaglayan/discord-webhooks-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccaglayan%2Fdiscord-webhooks-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccaglayan%2Fdiscord-webhooks-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccaglayan%2Fdiscord-webhooks-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccaglayan%2Fdiscord-webhooks-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ccaglayan","download_url":"https://codeload.github.com/ccaglayan/discord-webhooks-php/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccaglayan%2Fdiscord-webhooks-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32908623,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-11T17:09:15.040Z","status":"ssl_error","status_checked_at":"2026-05-11T17:08:45.420Z","response_time":120,"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":["discord","discord-webhook-api","discord-webhook-notifications","discord-webhooks","php","webhook","webhooks"],"created_at":"2025-02-12T20:19:59.332Z","updated_at":"2026-05-18T11:06:08.965Z","avatar_url":"https://github.com/ccaglayan.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DiscordWebhooksPHP\n\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/36813d9670e94e8494f4d3eef48bf121)](https://app.codacy.com/app/ccaglayan/discord-webhooks-php?utm_source=github.com\u0026utm_medium=referral\u0026utm_content=ccaglayan/discord-webhooks-php\u0026utm_campaign=Badge_Grade_Dashboard)\n\nDiscord webhooks is a simple client for Discord's webhook API.\n\n#### Composer require command\n`composer require ccaglayan/discord-webhooks-php`\n\n## Usage\n\nIt is fairly easy to use. I'll throw in an example.\n\n```php\nuse DiscordWebhooksPHP\\Client;\n\n$client = new Client('DISCORD_WEBHOOK_URL');\ntry{\n    $embedData = array(\n        \"author\" =\u003e array(\n            \"name\" =\u003e\"NAME\",\n            \"url\" =\u003e \"WEB_URL\",\n            \"icon_url\" =\u003e \"ICON_URL\"\n        ),\n        \"title\" =\u003e \"Title\",\n        \"url\" =\u003e \"WEB_URL\",\n        \"description\" =\u003e \"Text message. You can use Markdown here. *Italic* **bold** __underline__ ~~strikeout~~ [hyperlink](https://google.com) `code`\",\n        \"color\" =\u003e 15258703,\n        \"fields\" =\u003e array(\n            array(\n                \"name\" =\u003e \"Text\",\n                \"value\" =\u003e \"More text\",\n                \"inline\" =\u003e true\n            ),\n            array(\n                \"name\" =\u003e \"Text\",\n                \"value\" =\u003e \"More text\",\n                \"inline\" =\u003e true\n            ),\n            array(\n                \"name\" =\u003e \"Even more text\",\n                \"value\" =\u003e \"Yup\",\n                \"inline\" =\u003e true\n            ),\n            array(\n                \"name\" =\u003e \"Use `\\\"inline\\\" =\u003e true` parameter, if you want to display fields in the same line.\",\n                \"value\" =\u003e \"okay...\"\n            ),\n            array(\n                \"name\" =\u003e \"Thanks!\",\n                \"value\" =\u003e \"You're welcome :wink:\"\n            )\n        ),\n        \"thumbnail\" =\u003e array(\n            \"url\" =\u003e \"THUMBNAIL_URL\"\n        ),\n        \"image\" =\u003e array(\n            \"url\" =\u003e \"IMAGE_URL\"\n        ),\n          \"footer\" =\u003e array(\n            \"text\" =\u003e \"Woah! So cool! :smirk:\",\n            \"icon_url\" =\u003e \"ICON_URL\"\n        )\n    );\n\n\n    $client-\u003esetAvatar('AVATAR_URL'); // Optional\n    $client-\u003esetUsername('BOT_NAME'); // Optional\n    $client-\u003esetMessage('MESSAGE');\n    $client-\u003esetEmbedData($embedData); //Optional\n    $client-\u003esend();\n}catch(\\DiscordWebhooksPHP\\DiscordException $e) {\n    echo 'Error:'.$e-\u003egetMessage().'--'.$e-\u003egetCode();\n    exit;\n}\n```\n\n## Contributing\n\nPull requests and issues are open!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fccaglayan%2Fdiscord-webhooks-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fccaglayan%2Fdiscord-webhooks-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fccaglayan%2Fdiscord-webhooks-php/lists"}