An open API service indexing awesome lists of open source software.

https://github.com/psychob/laravel-webhook


https://github.com/psychob/laravel-webhook

Last synced: about 1 year ago
JSON representation

Awesome Lists containing this project

README

          

# Laravel WebHook

## Requirements
This library requires configured queue mechanism, as webhooks are
dispatched asynchronously through queue.

## Setup

To get Laravel WebHook ready for use in your project, take the usual steps for setting up a Laravel package.

1. Run: ```composer require psychob/laravel-webhook```
2. Add to your service provider: ```PsychoB\WebHook\Providers\WebHookProvider::class```
3. Run ```php artisan vendor:publish```
4. Run ```php artisan migrate```
5. Add to alias: ```
'WebHook' => \PsychoB\WebHook\Facades\WebHook::class,
```

## Sending WebHook

```
\WebHook::push(method, url, array with data, additional headers);
```