PHPackages                             ccoeder/laravel-notification-webhook - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. ccoeder/laravel-notification-webhook

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

ccoeder/laravel-notification-webhook
====================================

Webhook Notifications driver

1.4.0(6y ago)051MITPHPPHP &gt;=5.6.4

Since Aug 23Pushed 6y agoCompare

[ Source](https://github.com/ccoeder/laravel-notification-webhook)[ Packagist](https://packagist.org/packages/ccoeder/laravel-notification-webhook)[ Docs](https://github.com/ccoeder/laravel-notification-webhook)[ RSS](/packages/ccoeder-laravel-notification-webhook/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (7)Versions (8)Used By (0)

Webhook notifications channel for Laravel 5.3 ~ 5.8
===================================================

[](#webhook-notifications-channel-for-laravel-53--58)

[![Latest Version on Packagist](https://camo.githubusercontent.com/f4399f631121b55530c66add6ee87d72efdbb2c78425675ee26eb6374f98225f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f63636f656465722f6c61726176656c2d6e6f74696669636174696f6e2d776562686f6f6b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ccoeder/laravel-notification-webhook)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/3e1926a52add2a4d2d1c3f78052543b7ab2bdd023fbea264e8ce84199bc9221c/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f63636f656465722f6c61726176656c2d6e6f74696669636174696f6e2d776562686f6f6b2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/ccoeder/laravel-notification-webhook)[![StyleCI](https://camo.githubusercontent.com/a81911e963f01ab85ad3edd89a5158fa4607afae1b7d2cf95216b733f3e9c47a/68747470733a2f2f7374796c6563692e696f2f7265706f732f36353638353836362f736869656c64)](https://styleci.io/repos/65685866)[![SensioLabsInsight](https://camo.githubusercontent.com/cc88870747ad11c0f3b0a6d4efcde14e8d74df772b765e80d8a624cd11836395/68747470733a2f2f696d672e736869656c64732e696f2f73656e73696f6c6162732f692f39303135363931662d313330642d346663612d383731302d3732613031306162633638342e7376673f7374796c653d666c61742d737175617265)](https://insight.sensiolabs.com/projects/9015691f-130d-4fca-8710-72a010abc684)[![Quality Score](https://camo.githubusercontent.com/8562f81c39d115a05370306e6fa8c3fd00582588da756e434bdcbf898092ec4d/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f63636f656465722f6c61726176656c2d6e6f74696669636174696f6e2d776562686f6f6b2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/ccoeder/laravel-notification-webhook)[![Code Coverage](https://camo.githubusercontent.com/f5f3e15d8c907cf09f693983cc34ee70c19dfa2bc4d773b6cd29caa0b8ef8605/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f63636f656465722f6c61726176656c2d6e6f74696669636174696f6e2d776562686f6f6b2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/ccoeder/laravel-notification-webhook/?branch=master)[![Total Downloads](https://camo.githubusercontent.com/c572912fe0cc2c8af9b3c9e39c21a474a122ba84608aa29dc075e004253173ef/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f63636f656465722f6c61726176656c2d6e6f74696669636174696f6e2d776562686f6f6b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ccoeder/laravel-notification-webhook)

This package makes it easy to send webhooks using the Laravel notification system.

This is an another fork from miladnouri/laravel-notification-webhook because I need to use with on-demand notifications so I added support for that.

Contents
--------

[](#contents)

- [Installation](#installation)
- [Usage](#usage) - [Available Message methods](#available-message-methods)
- [Changelog](#changelog)
- [Testing](#testing)
- [License](#license)

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

[](#installation)

You can install the package via composer:

```
composer require ccoeder/laravel-notification-webhook
```

Usage
-----

[](#usage)

Now you can use the channel in your `via()` method inside the notification:

```
use NotificationChannels\Webhook\WebhookMessage;
use Illuminate\Notifications\Notification;

class ProjectCreated extends Notification
{
    public function via($notifiable)
    {
        return ['webhook'];
    }

    public function toWebhook($notifiable)
    {
        return WebhookMessage::create()
            ->data([
               'payload' => [
                   'webhook' => 'data'
               ]
            ])
            ->userAgent("Custom-User-Agent")
            ->header('X-Custom', 'Custom-Header');
    }
}
```

In order to let your Notification know which URL should receive the Webhook data, add the `routeNotificationForWebhook` method to your Notifiable model.

This method needs to return the URL where the notification Webhook will receive a POST request.

```
public function routeNotificationForWebhook()
{
    return 'http://myrequest.com/abcd';
}
```

### Available methods

[](#available-methods)

- `data('')`: Accepts a JSON-encodable value for the Webhook body.
- `userAgent('')`: Accepts a string value for the Webhook user agent.
- `header($name, $value)`: Sets additional headers to send with the POST Webhook.

Changelog
---------

[](#changelog)

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

Testing
-------

[](#testing)

```
$ composer test
```

License
-------

[](#license)

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

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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.

###  Release Activity

Cadence

Every ~181 days

Recently: every ~232 days

Total

7

Last Release

2507d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/09bec2f3198f09287927390c2362f090f0408c319f12fb5285848842b3a5e48c?d=identicon)[ccoeder](/maintainers/ccoeder)

---

Top Contributors

[![mpociot](https://avatars.githubusercontent.com/u/804684?v=4)](https://github.com/mpociot "mpociot (16 commits)")[![hcyildirim](https://avatars.githubusercontent.com/u/10330468?v=4)](https://github.com/hcyildirim "hcyildirim (5 commits)")[![miladnouri](https://avatars.githubusercontent.com/u/3003901?v=4)](https://github.com/miladnouri "miladnouri (5 commits)")[![robinvdvleuten](https://avatars.githubusercontent.com/u/238295?v=4)](https://github.com/robinvdvleuten "robinvdvleuten (3 commits)")[![REBELinBLUE](https://avatars.githubusercontent.com/u/2143908?v=4)](https://github.com/REBELinBLUE "REBELinBLUE (1 commits)")[![casperboone](https://avatars.githubusercontent.com/u/15815208?v=4)](https://github.com/casperboone "casperboone (1 commits)")[![themsaid](https://avatars.githubusercontent.com/u/4332182?v=4)](https://github.com/themsaid "themsaid (1 commits)")[![freekmurze](https://avatars.githubusercontent.com/u/483853?v=4)](https://github.com/freekmurze "freekmurze (1 commits)")[![JayBizzle](https://avatars.githubusercontent.com/u/340752?v=4)](https://github.com/JayBizzle "JayBizzle (1 commits)")[![kylestev](https://avatars.githubusercontent.com/u/819571?v=4)](https://github.com/kylestev "kylestev (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ccoeder-laravel-notification-webhook/health.svg)

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

###  Alternatives

[spatie/laravel-health

Monitor the health of a Laravel application

87411.3M154](/packages/spatie-laravel-health)[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)[laravel-notification-channels/telegram

Telegram Notifications Channel for Laravel

1.1k3.7M42](/packages/laravel-notification-channels-telegram)[s-ichikawa/laravel-sendgrid-driver

This library adds a 'sendgrid' mail driver to Laravel.

4079.7M1](/packages/s-ichikawa-laravel-sendgrid-driver)[laravel-notification-channels/microsoft-teams

A Laravel Notification Channel for Microsoft Teams

1613.2M11](/packages/laravel-notification-channels-microsoft-teams)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

252143.0k](/packages/erag-laravel-disposable-email)

PHPackages © 2026

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