Webhook
INEX SPA - Webhook System Documentation
π Feature: Webhooks
The Webhook system allows your INEX SPA application to send HTTP requests (webhooks) to external services or internal APIs whenever certain actions occur. This can be used for integrations, notifications, and automation.
βοΈ Enable Webhooks
To enable this feature, open your .env file and set:
USE_WEBHOOK=trueOnce enabled, the Webhook class will be available to use manually.
π Files & Location
Webhook Class:
/core/functions/PHP/classes/Webhook.php
π§ How It Works
You can call Webhook::send() to trigger any custom webhook manually.
π§ Function: Webhook::send($url, $data = [])
Webhook::send($url, $data = [])Parameters:
$url(string) β Webhook URL to send to.$data(array) β Optional. Data to send in the request body (as JSON).
Example:
β
Notes
Uses
file_get_contentswith stream context (no cURL or library).Supports any backend accepting JSON payload.
Lightweight and synchronous.
Β© INEX SPA Team - Webhook System
Last updated