PHPackages                             rokde/laravel-buymeacoffee-webhook-handler - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. rokde/laravel-buymeacoffee-webhook-handler

ActiveLibrary[HTTP &amp; Networking](/categories/http)

rokde/laravel-buymeacoffee-webhook-handler
==========================================

Buy me a coffee webhook receiving handler in Laravel

0121[3 PRs](https://github.com/rokde/laravel-buymeacoffee-webhook-handler/pulls)PHPCI passing

Since Nov 24Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/rokde/laravel-buymeacoffee-webhook-handler)[ Packagist](https://packagist.org/packages/rokde/laravel-buymeacoffee-webhook-handler)[ RSS](/packages/rokde-laravel-buymeacoffee-webhook-handler/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (4)Used By (0)

Buy me a coffee webhook receiving handler in Laravel
====================================================

[](#buy-me-a-coffee-webhook-receiving-handler-in-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/8be1cfa0fdef1b1213d3fa648bf7bf9816bc15f03418875ae08b39361be8c9b7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f726f6b64652f6c61726176656c2d6275796d6561636f666665652d776562686f6f6b2d68616e646c65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/rokde/laravel-buymeacoffee-webhook-handler)[![GitHub Tests Action Status](https://camo.githubusercontent.com/0b26410de6ee8f44f8cf4eed6fd63780d4884c20befd3dfc774df6aa69791327/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f726f6b64652f6c61726176656c2d6275796d6561636f666665652d776562686f6f6b2d68616e646c65722f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/rokde/laravel-buymeacoffee-webhook-handler/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/934b5b02dc44b59e84db801b2eb176fd38ba1da5f324f94e41bde9abc43fe0d8/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f726f6b64652f6c61726176656c2d6275796d6561636f666665652d776562686f6f6b2d68616e646c65722f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/rokde/laravel-buymeacoffee-webhook-handler/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/2a1a714cd5fc6c728b1e963a6c275fba08c4e72851e857f7f27462ddd181c95f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f726f6b64652f6c61726176656c2d6275796d6561636f666665652d776562686f6f6b2d68616e646c65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/rokde/laravel-buymeacoffee-webhook-handler)

This 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.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require rokde/laravel-buymeacoffee-webhook-handler
```

You can publish the config file with:

```
php artisan vendor:publish --tag="laravel-buymeacoffee-webhook-handler-config"
```

This is the contents of the published config file:

```
return [
    'url' => env('BUY_ME_A_COFFEE_WEBHOOK_HANDLER_URL', '/webhooks/buymeacoffee'),
    'secret' => env('BUY_ME_A_COFFEE_WEBHOOK_SECRET'),
];
```

Usage
-----

[](#usage)

Register the configured url as Webhook URL at [Buy me a coffee](https://studio.buymeacoffee.com/webhooks). Select the events you like to get notified to.

And configure the secret you are receiving from Buy me a coffee as environment variable `BUY_ME_A_COFFEE_WEBHOOK_SECRET`.

And you are ready to go.

You 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`).

Configure your listener for the webhook events accordingly in your [Laravel application](https://laravel.com/docs/events#manually-registering-events).

CAUTION:

Please 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.

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Robert Kummer](https://github.com/rokde)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance60

Regular maintenance activity

Popularity7

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity17

Early-stage or recently created project

 Bus Factor1

Top contributor holds 54.1% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4946056?v=4)[Robert Kummer](/maintainers/rokde)[@rokde](https://github.com/rokde)

---

Top Contributors

[![rokde](https://avatars.githubusercontent.com/u/4946056?v=4)](https://github.com/rokde "rokde (20 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (8 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (5 commits)")[![mikinostabellarius](https://avatars.githubusercontent.com/u/168463581?v=4)](https://github.com/mikinostabellarius "mikinostabellarius (4 commits)")

### Embed Badge

![Health badge](/badges/rokde-laravel-buymeacoffee-webhook-handler/health.svg)

```
[![Health](https://phpackages.com/badges/rokde-laravel-buymeacoffee-webhook-handler/health.svg)](https://phpackages.com/packages/rokde-laravel-buymeacoffee-webhook-handler)
```

###  Alternatives

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[nyholm/psr7

A fast PHP7 implementation of PSR-7

1.3k235.4M2.4k](/packages/nyholm-psr7)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78126.4M414](/packages/react-http)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
