PHPackages                             oanhnn/laravel-webhook-notification - 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. oanhnn/laravel-webhook-notification

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

oanhnn/laravel-webhook-notification
===================================

Integrate Webhook notification into Laravel 5.5+

v0.1.0(7y ago)22.0kMITPHPPHP ^7.1.3

Since Jul 6Pushed 7y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (8)Versions (3)Used By (0)

Introduction
============

[](#introduction)

[![Latest Version](https://camo.githubusercontent.com/a1d6eff59682f134d9dbcecd75a1d4d6af95ca8bc179c27e3713cfab88fadf27/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f616e686e6e2f6c61726176656c2d776562686f6f6b2d6e6f74696669636174696f6e2e737667)](https://packagist.org/packages/oanhnn/laravel-webhook-notification)[![Software License](https://camo.githubusercontent.com/3acd05416ed5054d760d52232987f1d6d831dedd67c0ee8be933c73ca842cfa7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6f616e686e6e2f6c61726176656c2d776562686f6f6b2d6e6f74696669636174696f6e2e737667)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/1327f69ebfb013338714a8bea45e515c03eac240256c8945ddf08f4ab1e6e10c/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6f616e686e6e2f6c61726176656c2d776562686f6f6b2d6e6f74696669636174696f6e2f6d61737465722e737667)](https://travis-ci.org/oanhnn/laravel-webhook-notification)[![Coverage Status](https://camo.githubusercontent.com/cb33cba979faa5e24abd4f6f46060f0939f891255521b9632c5e968c0f5c567f/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f6769746875622f6f616e686e6e2f6c61726176656c2d776562686f6f6b2d6e6f74696669636174696f6e2f6d61737465722e737667)](https://coveralls.io/github/oanhnn/laravel-webhook-notification?branch=master)[![Total Downloads](https://camo.githubusercontent.com/c1bf5eb70648738c34d55cf526570846fb019a093cfbf89056d58329ced94d10/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6f616e686e6e2f6c61726176656c2d776562686f6f6b2d6e6f74696669636174696f6e2e737667)](https://packagist.org/packages/oanhnn/laravel-webhook-notification)[![Requires PHP](https://camo.githubusercontent.com/d18f81076a2149b506301c5d5e0c0076556d324644d7a73f6a4031f40d5a4b27/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7068702d762f6f616e686e6e2f6c61726176656c2d776562686f6f6b2d6e6f74696669636174696f6e2e737667)](https://travis-ci.org/oanhnn/laravel-webhook-notification)

Easy send Webhook notification in Laravel 5.5+ Application

Requirements
------------

[](#requirements)

- php &gt;=7.1.3
- Laravel 5.5+

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

[](#installation)

Begin by pulling in the package through Composer.

```
$ composer require oanhnn/laravel-webhook-notification
```

Usage
-----

[](#usage)

Implement webhook notifiable:

```
class User extends Authenticatable implements WebhookNotifiable
{
    use Notifiable;

    /**
     * @return string
     */
    public function getSigningKey(): string
    {
        return $this->api_key;
    }

    /**
     * @return string
     */
    public function getWebhookUrl(): string
    {
        return $this->webhook_url;
    }
}
```

In notification class,

```
class ProjectCreated extends Notification
{
    /**
     * @return array
     */
    public function via($notifiable)
    {
        return [WebhookChannel::class];
    }

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

See more in [Laravel document](https://laravel.com/docs/5.6/notification)

Changelog
---------

[](#changelog)

See all change logs in [CHANGELOG](CHANGELOG.md)

Testing
-------

[](#testing)

```
$ git clone git@github.com/oanhnn/laravel-webhook-notification.git /path
$ cd /path
$ composer install
$ composer phpunit
```

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

[](#contributing)

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

Security
--------

[](#security)

If you discover any security related issues, please email to [Oanh Nguyen](mailto:oanhnn.bk@gmail.com) instead of using the issue tracker.

Credits
-------

[](#credits)

- [Oanh Nguyen](https://github.com/oanhnn)
- [All Contributors](../../contributors)

License
-------

[](#license)

This project is released under the MIT License.
Copyright © 2018 [Oanh Nguyen](https://oanhnn.github.io/).

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2868d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b32dfbbbf603d0317f2ab7ab33c7c7611e90f6701c5c84f07a8b537aa84e83f7?d=identicon)[oanhnn](/maintainers/oanhnn)

---

Top Contributors

[![oanhnn](https://avatars.githubusercontent.com/u/1757120?v=4)](https://github.com/oanhnn "oanhnn (4 commits)")

---

Tags

laravellaravel-5-packagelaravel-packagenotificationswebhooklaravelpackagenotificationwebhook

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[laravel-notification-channels/telegram

Telegram Notifications Channel for Laravel

1.1k3.4M35](/packages/laravel-notification-channels-telegram)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)[s-ichikawa/laravel-sendgrid-driver

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

4139.3M1](/packages/s-ichikawa-laravel-sendgrid-driver)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[gr8shivam/laravel-sms-api

A modern, flexible Laravel package for integrating any SMS gateway with REST API support

10138.4k](/packages/gr8shivam-laravel-sms-api)[snoeren-development/laravel-discord-webhook-channel

Send notifications to a Discord webhook.

1549.8k1](/packages/snoeren-development-laravel-discord-webhook-channel)

PHPackages © 2026

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