The Webhook Proxy Client is built to forward webhooks from the Webhook Proxy Server to your local environment. It listens to the Webhook Proxy Server via WebSocket and forwards the webhooks to your local environment via TCP/HTTP.
After the installation, run the application with the --help or -h flag to discover available options:
$ whp -hAlso run it for the customize command:
$ whp customize -hOK BYE ✋
The program requires PHP 8.1+ to be installed on the system.
[TBW]
The CLI is available via the whp command.
The example syntax is:
$ whp --channel=c3fc8456-b1f6-4fd5-9b9a-736f01160c60 --forward-url=https://your-forward-url.com:8888/v1/webhooks/local-channel-id| Option | Description |
|---|---|
--channel |
The channel ID to listen for webhooks. Can be either a UUID or a link to the channel. In case it's a link, the domain/port setting will be overwritten from the default ones. The default domain is request-proxy.dev-net.coExample values: c3fc8456-b1f6-4fd5-9b9a-736f01160c60, https://request-proxy.dev-net.co/ch/c3fc8456-b1f6-4fd5-9b9a-736f01160c60 |
--forward-url |
The URL to forward the webhooks to. Example value: https://your-forward-url.com:8888/v1/webhooks/local-channel-id |
NOTE: these options are not strictly required to start the program. If some of them are not provided, the CLI will ask for them.
The CLI can be customized via the whp customize command.
$ whp customize {?config} {?value}If no arguments are provided it just generates the .env file that can be modified manually.
If the config argument is provided, it sets the value and rewrites the .env file.
The .env file itself can be edited manually either way.
| Config | Dotenv Equivalent | Possible values |
|---|---|---|
| timezone | APP_TIMEZONE | Any supported timezone string. Default is UTC |
| socket.timeout | WHP_SOCKET_TIMEOUT | Any positive integer greater then 0. Default is 20 |
| socket.verify_ssl | WHP_SOCKET_VERIFY_SSL | true or false. Default is false |
| socket.protocol_version | WHP_SOCKET_PROTOCOL_VERSION | Any positive integer greater then 0. Default is 7 |
| socket.client_name | WHP_SOCKET_CLIENT_NAME | Any string. Default is js |
| socket.version | WHP_SOCKET_VERSION | Any string. Default is 4.4.0 |
| socket.flash | WHP_SOCKET_FLASH | true or false. Default is false |
$ whp customize timezone Europe/Kiev$ whp customize socket.timeout 30$ whp customize socket.verify_ssl false$ whp customize socket.protocol_version 8$ whp customize socket.client_name my-client$ whp customize socket.version 4.5.0$ whp customize socket.flash true