Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
W

webhook

> 编程语言
Open source

Webhook notifications channel for Laravel

178 stars0 likes2 views
WebsiteGitHub

About

Webhook notifications channel for Laravel

Webhook notifications channel for Laravel

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

Compatibility

Laravel version PHP version Package version
^6.0 | ^7.0 | ^8.0 | ^9.0 | ^10.0 ^7.2.5 | ^8.0 ^2.4
^6.0 | ^7.0 | ^8.0 | ^9.0 ^7.2.5 | ^8.0 ^2.3
^6.0 | ^7.0 | ^8.0 ^7.2.5 | ^8.0 ^2.2
^6.0 | ^7.0 | ^8.0 ^7.2.5 ^2.1
~5.5 | ~6.0 | ~7.0 >=7.2.5 ^2.0
~5.5 | ~6.0 >=7.0 ^1.3
5.1.* | 5.2.* | 5.3.* | 5.4.* | 5.5.* | 5.6.* >=5.6.4 ^1.2
5.1.* | 5.2.* | 5.3.* | 5.4.* | 5.5.* >=5.6.4 ^1.1
5.1.* | 5.2.* | 5.3.* | 5.4.* >=5.6.4 ^1.0.2
5.1.* | 5.2.* | 5.3.* >=5.6.4 ^1.0.0

Contents

  • Installation
  • Usage
    • Available Message methods
  • Changelog
  • Testing
  • Security
  • Contributing
  • Credits
  • License

Installation

You can install the package via composer:

bash
composer require laravel-notification-channels/webhook

Usage

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

…

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.

php
public function routeNotificationForWebhook()
{
    return 'http://requestb.in/1234x';
}

Available methods

  • data(''): Accepts a JSON-encodable value for the Webhook body.
  • query(''): Accepts an associative array of query string values to add to the request.
  • userAgent(''): Accepts a string value for the Webhook user agent.
  • header($name, $value): Sets additional headers to send with the POST Webhook.
  • verify(): Enable the SSL certificate verification or provide the path to a CA bundle

Changelog

Please see CHANGELOG for more information what has changed recently.

Testing

bash
$ composer test

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Contributing

Please see CONTRIBUTING for details.

Credits

  • Marcel Pociot
  • All Contributors

License

The MIT License (MIT). Please see License File for more information.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

PHP

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言