{"id":15026307,"url":"https://github.com/sebastiansommer/7sg-rocketchat-webhook","last_synced_at":"2026-02-13T10:33:53.718Z","repository":{"id":37585142,"uuid":"277072707","full_name":"sebastiansommer/7sg-rocketchat-webhook","owner":"sebastiansommer","description":"A PHP interface to send requests to Rocket Chat incoming webhooks.","archived":false,"fork":false,"pushed_at":"2023-04-19T21:16:58.000Z","size":30,"stargazers_count":1,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-30T09:06:55.284Z","etag":null,"topics":["php","php-library","php7","php73","rocketchat","webhook"],"latest_commit_sha":null,"homepage":"","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/sebastiansommer.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-07-04T08:44:42.000Z","updated_at":"2022-05-28T22:22:17.000Z","dependencies_parsed_at":"2024-10-12T12:40:31.248Z","dependency_job_id":"4873eb37-a563-4bd2-a613-782ebe340e8c","html_url":"https://github.com/sebastiansommer/7sg-rocketchat-webhook","commit_stats":{"total_commits":10,"total_committers":2,"mean_commits":5.0,"dds":"0.19999999999999996","last_synced_commit":"bd5e21af307633f3f8e9e3128f977cd96472b4b1"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/sebastiansommer/7sg-rocketchat-webhook","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastiansommer%2F7sg-rocketchat-webhook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastiansommer%2F7sg-rocketchat-webhook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastiansommer%2F7sg-rocketchat-webhook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastiansommer%2F7sg-rocketchat-webhook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sebastiansommer","download_url":"https://codeload.github.com/sebastiansommer/7sg-rocketchat-webhook/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastiansommer%2F7sg-rocketchat-webhook/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272827488,"owners_count":24999813,"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-08-30T02:00:09.474Z","response_time":77,"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":["php","php-library","php7","php73","rocketchat","webhook"],"created_at":"2024-09-24T20:04:15.346Z","updated_at":"2026-02-13T10:33:48.664Z","avatar_url":"https://github.com/sebastiansommer.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 7sg-rocketchat-webhook\nA PHP interface to send requests to Rocket Chat incoming webhooks.\n\n## Install\n\n```bash\ncomposer require 7sg/rocketchat-webhook\n```\n\n## Usage\n### Simple message\n\n```php\nuse Seven\\RocketChatWebHook\\Message as RocketChatMessage;\nuse Seven\\RocketChatWebHook\\RocketChat;\n\nRocketChat::setEndPoint('https:/rocketchat.url');\n\n$message = new RocketChatMessage('Hello!');\n$message-\u003esetEmoji('🥳');\n\nRocketChat::sendMessage($message, 'webhook-hash-and-channel');\n```\n### Messages can also have attachments\nYou can find a full list of all fields [here](https://docs.rocket.chat/api/rest-api/methods/chat/postmessage#attachments-detail).\n```php\n$attachment = new RocketChatMessage\\Attachment();\n$attachment-\u003etitle = 'Title';\n$attachment-\u003etitle_link = 'https://test.test';\n$attachment-\u003efields = [\n    [\n        'title' =\u003e 'Test',\n        'value' =\u003e 'value'\n    ]\n];\n\n$message-\u003eaddAttachment($attachment);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebastiansommer%2F7sg-rocketchat-webhook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsebastiansommer%2F7sg-rocketchat-webhook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebastiansommer%2F7sg-rocketchat-webhook/lists"}