{"id":22910328,"url":"https://github.com/rokde/laravel-buymeacoffee-webhook-handler","last_synced_at":"2025-05-08T23:46:08.111Z","repository":{"id":251753156,"uuid":"838217589","full_name":"rokde/laravel-buymeacoffee-webhook-handler","owner":"rokde","description":"Buy me a coffee webhook receiving handler in Laravel","archived":false,"fork":false,"pushed_at":"2025-05-05T15:10:44.000Z","size":43,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-08T23:45:49.237Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/rokde.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","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,"zenodo":null},"funding":{"github":"rokde","custom":"https://paypal.me/rok","buy_me_a_coffee":"robertkummer"}},"created_at":"2024-08-05T07:31:59.000Z","updated_at":"2025-05-05T15:10:47.000Z","dependencies_parsed_at":"2024-08-05T14:47:12.837Z","dependency_job_id":"5c0f2454-37c3-49be-967a-60b3a56272bf","html_url":"https://github.com/rokde/laravel-buymeacoffee-webhook-handler","commit_stats":null,"previous_names":["rokde/laravel-buymeacoffee-webhook-handler"],"tags_count":0,"template":false,"template_full_name":"spatie/package-skeleton-laravel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rokde%2Flaravel-buymeacoffee-webhook-handler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rokde%2Flaravel-buymeacoffee-webhook-handler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rokde%2Flaravel-buymeacoffee-webhook-handler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rokde%2Flaravel-buymeacoffee-webhook-handler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rokde","download_url":"https://codeload.github.com/rokde/laravel-buymeacoffee-webhook-handler/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253166474,"owners_count":21864467,"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":[],"created_at":"2024-12-14T03:43:01.129Z","updated_at":"2025-05-08T23:46:08.104Z","avatar_url":"https://github.com/rokde.png","language":"PHP","funding_links":["https://github.com/sponsors/rokde","https://paypal.me/rok","https://buymeacoffee.com/robertkummer","https://studio.buymeacoffee.com/webhooks"],"categories":[],"sub_categories":[],"readme":"# Buy me a coffee webhook receiving handler in Laravel\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/rokde/laravel-buymeacoffee-webhook-handler.svg?style=flat-square)](https://packagist.org/packages/rokde/laravel-buymeacoffee-webhook-handler)\n[![GitHub Tests Action Status](https://img.shields.io/github/actions/workflow/status/rokde/laravel-buymeacoffee-webhook-handler/run-tests.yml?branch=main\u0026label=tests\u0026style=flat-square)](https://github.com/rokde/laravel-buymeacoffee-webhook-handler/actions?query=workflow%3Arun-tests+branch%3Amain)\n[![GitHub Code Style Action Status](https://img.shields.io/github/actions/workflow/status/rokde/laravel-buymeacoffee-webhook-handler/fix-php-code-style-issues.yml?branch=main\u0026label=code%20style\u0026style=flat-square)](https://github.com/rokde/laravel-buymeacoffee-webhook-handler/actions?query=workflow%3A\"Fix+PHP+code+style+issues\"+branch%3Amain)\n[![Total Downloads](https://img.shields.io/packagist/dt/rokde/laravel-buymeacoffee-webhook-handler.svg?style=flat-square)](https://packagist.org/packages/rokde/laravel-buymeacoffee-webhook-handler)\n\nThis package handles the incoming webhook calls by Buy me a Coffee. It emits Events with the provided data and you can implement the corresponding listener on your own.\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require rokde/laravel-buymeacoffee-webhook-handler\n```\n\nYou can publish the config file with:\n\n```bash\nphp artisan vendor:publish --tag=\"laravel-buymeacoffee-webhook-handler-config\"\n```\n\nThis is the contents of the published config file:\n\n```php\nreturn [\n    'url' =\u003e env('BUY_ME_A_COFFEE_WEBHOOK_HANDLER_URL', '/webhooks/buymeacoffee'),\n    'secret' =\u003e env('BUY_ME_A_COFFEE_WEBHOOK_SECRET'),\n];\n```\n\n## Usage\n\nRegister the configured url as Webhook URL at [Buy me a coffee](https://studio.buymeacoffee.com/webhooks). \nSelect the events you like to get notified to.\n\nAnd configure the secret you are receiving from Buy me a coffee as environment variable `BUY_ME_A_COFFEE_WEBHOOK_SECRET`.\n\nAnd you are ready to go.\n\nYou can configure your webhook url as environment variable too when you do not want to publish the configuration (`BUY_ME_A_COFFEE_WEBHOOK_HANDLER_URL`).\n\n\nConfigure your listener for the webhook events accordingly in your [Laravel application](https://laravel.com/docs/events#manually-registering-events).\n\nCAUTION:\n\nPlease make sure to except the CSRF protection from the configured webhook url. You can take a look into [laravel's documentation](https://laravel.com/docs/csrf#csrf-excluding-uris) for this.\n\n## Testing\n\n```bash\ncomposer test\n```\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n## Security Vulnerabilities\n\nPlease review [our security policy](../../security/policy) on how to report security vulnerabilities.\n\n## Credits\n\n- [Robert Kummer](https://github.com/rokde)\n- [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frokde%2Flaravel-buymeacoffee-webhook-handler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frokde%2Flaravel-buymeacoffee-webhook-handler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frokde%2Flaravel-buymeacoffee-webhook-handler/lists"}