{"id":20195276,"url":"https://github.com/kurozumi/github-webhook-bundle","last_synced_at":"2026-02-02T12:39:39.641Z","repository":{"id":262600792,"uuid":"868668280","full_name":"kurozumi/github-webhook-bundle","owner":"kurozumi","description":"Symfony GitHub Webhook Bundle","archived":false,"fork":false,"pushed_at":"2024-10-09T01:29:31.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-08T23:59:52.084Z","etag":null,"topics":["symfony","symfony-bundle","webhook"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kurozumi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-10-07T00:39:55.000Z","updated_at":"2024-10-09T01:27:47.000Z","dependencies_parsed_at":"2024-11-13T10:15:29.561Z","dependency_job_id":null,"html_url":"https://github.com/kurozumi/github-webhook-bundle","commit_stats":null,"previous_names":["kurozumi/github-webhook-bundle"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/kurozumi/github-webhook-bundle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kurozumi%2Fgithub-webhook-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kurozumi%2Fgithub-webhook-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kurozumi%2Fgithub-webhook-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kurozumi%2Fgithub-webhook-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kurozumi","download_url":"https://codeload.github.com/kurozumi/github-webhook-bundle/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kurozumi%2Fgithub-webhook-bundle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29012680,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-02T10:37:29.253Z","status":"ssl_error","status_checked_at":"2026-02-02T10:37:28.644Z","response_time":58,"last_error":"SSL_read: 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":["symfony","symfony-bundle","webhook"],"created_at":"2024-11-14T04:16:38.740Z","updated_at":"2026-02-02T12:39:39.587Z","avatar_url":"https://github.com/kurozumi.png","language":"PHP","readme":"# GitHub Webhook Bundle\n\n## Installation\n\n```shell\ncomposer require kurozumi/github-webhook-bundle\n```\nThe configuration:\n\n```env\n# .env\n\nWEBHOOK_GITHUB_SECRET=1z9Y48dbgqxZi...\n```\n\n## Webhook\n\nCreate a route:\n\n```yaml\nframework:\n    webhook:\n        routing:\n          github:\n              service: webhook.request_parser.github\n              secret: '%env(WEBHOOK_GITHUB_SECRET)%'\n```\n\nAnd a consume:\n\n```php\nuse Symfony\\Component\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Component\\RemoteEvent\\Attribute\\AsRemoteEventConsumer;\nuse Symfony\\Component\\RemoteEvent\\Consumer\\ConsumerInterface;\nuse Symfony\\Component\\RemoteEvent\\RemoteEvent;\n\n#[AsRemoteEventConsumer(name: 'github')]\nfinal class GithubConsumer implements ConsumerInterface\n{\n    public function __construct(\n        private EventDispatcherInterface $eventDispatcher,\n    ) {\n    }\n\n    public function consume(RemoteEvent $event): void\n    {\n        $this-\u003eeventDispatcher-\u003edispatch($event, $event-\u003egetName());\n    }\n}\n\n```\n\n## How to use\n\n```php\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface\nuse Symfony\\Component\\RemoteEvent\\RemoteEvent;\n\nclass GithubWebhookListener implements EventSubscriberInterface\n{\n    public static function getSubscribedEvents(): array\n    {\n        return [\n            'pull_request' =\u003e 'onPullRequest',\n        ]\n    }\n    \n    public function onPullRequest(RemoteEvent $event): void\n    {\n        $payload = $event-\u003egetPayload();\n        \n        // do something\n    }\n}\n```\n\n## Webhook events and payloads\n\nhttps://docs.github.com/en/webhooks/webhook-events-and-payloads","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkurozumi%2Fgithub-webhook-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkurozumi%2Fgithub-webhook-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkurozumi%2Fgithub-webhook-bundle/lists"}