Download the PHP package syehan/webhook-plugin without Composer

On this page you can find all versions of the php package syehan/webhook-plugin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package webhook-plugin

OctoberCMS Webhook

Use syehan/webhook-plugin. A webhook is a way for an app to provide information to another app about a particular event. The way the two apps communicate is with a simple HTTP request.

Installation

1 - You can install the package via composer:

2 - Now publish the migration for webhook tables:

Note: It will generate migration table syehan_webhook_webhooks.

Required Dependency

This plugin required dependency by Spatie Webhook Server (https://github.com/spatie/laravel-webhook-server) If there's some trouble, here's another way to do :

You can install it by :


Or, Install composer merge plugin like this :

Next, adding allow plugins configuration in your composer.json :

Then, adding extra configuration in your composer.json :

Last but not least,

Config Webhook

If your have any setup for webhook server please make sure to copy our config below and paste in config/webhook-server.php.

Registering your model

In Default we already registered the RainLab.User Model to this plugin. And there's two way to implement the webhook :

1 - By observing your model :

2 - Or, more creative way is :

The second way of implementation is more flexible, we created function inside the behavior class like this :

It means, you able to call your webhook in your own way, for example :

or

after that, you must registering your event in config/webhook-server.php like this :

Lastly, create your webhook in the menu settings, create some request payload to other app domain and activate it.

Testing The Webhook

We recommend you to test using request baskets (https://rbaskets.in/web) to make sure the webhook is running well.

Security

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

Credits

License

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


All versions of webhook-plugin with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
composer/installers Version ~1.0
spatie/laravel-webhook-server Version ^3.4
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package syehan/webhook-plugin contains the following files

Loading the files please wait ....