psychob / laravel-webhook
A WebHook package
Installs: 2 158
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >=7.1
- ext-json: *
- guzzlehttp/guzzle: ^5||^6
- laravel/framework: >=5.6
- ramsey/uuid: ^3.7
Requires (Dev)
- phpunit/phpunit: ^7.0
README
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.
- Run:
composer require psychob/laravel-webhook
- Add to your service provider:
PsychoB\WebHook\Providers\WebHookProvider::class
- Run
php artisan vendor:publish
- Run
php artisan migrate
- Add to alias:
'WebHook' => \PsychoB\WebHook\Facades\WebHook::class,
Sending WebHook
\WebHook::push(method, url, array with data, additional headers);