Download the PHP package bfg/web-hooker without Composer

On this page you can find all versions of the php package bfg/web-hooker. 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 web-hooker

Extension web-hooker

Install

Description

Compact Laravel WebHook core for simple of begin

Usage

Importantly! You should have queues for processing hooks.

Publish

Migrations

Configs

Migrate

A mandatory stage is to create a table in the database, so after the publication of migration, will launch them.

Http request type

You need to make sure that the type.http_request setting is included in the config/webhooker.php file in the true value.

Before usage, you should use the trait on your model there you want to use for hooks:

Create your own event, which is a standard Laravel functionality.

In the construct of your event, you can accept the Hook model and a payload.

Create the organizer class by using the Bfg\WebHooker\WebHookOrganizerInterface interface:

Or you can use the command for create a organizer:

For get a request link for hook, you can use the $hook->route_response parameter.

You can now create bridges for some separate entry in the database or model.

or

If you want to postpone the signature for some time, you can use the subscribeDelay method:

If you want to indicate the time of the unsubscribing, you can also indicate through the unsubscribeDelay method:

To launch subscription and unsubscribing procedures, you need to configure your schedule on the webhook:associate command with an interval of one minute:

Open signature type

You need to make sure that the type.websocket_open_signature setting is included in the config/webhooker.php file in the true value.

If you install a beyondcode/laravel-websockets package, you have the opportunity to create fast hooks that can take data on the socket. What you need to use this type:

Create the organizer:

Create the special bridge:

Server:

Client:

Open client type

You need to make sure that the type.websocket_open_client setting is included in the config/webhooker.php file in the true value.

This type is designed as a client that creates local client connections with asynchronous TCPs (web socket servers).

Create the organizer:

Carefully study how the organizer is built, without it the client’s server will ignore this hook

After the link to the server is indicated, you can customize your organizer a little:

In order to prepare your payload, you can declare the preparePayload method in your organizer:

Create the special bridge:

Run the server of client connection

Supervisor


All versions of web-hooker with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0.0
workerman/workerman Version ^4.1
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 bfg/web-hooker contains the following files

Loading the files please wait ....