# Hook

Enables developers & administrators to build and throw webhooks to any micro-services outside of Magento. An extendable framework in the shape of a Magento module which acts as a base layer for all your webhook events.

### Help and Docs

* [Official website](https://github.com/wpoortman/magehook-hook)
* [Basic principles](https://en.wikipedia.org/wiki/webhook)
* [What are webhooks](https://zapier.com/blog/what-are-webhooks/)

### Composer requirement

```bash
composer require wpoortman/magehook
```

### Compatibility

|           | Open Source | Commerce |
| --------- | ----------- | -------- |
| ~~2.0.x~~ | ~~No~~      | ~~No~~   |
| ~~2.1.x~~ | ~~No~~      | ~~No~~   |
| ~~2.2.x~~ | ~~No~~      | ~~No~~   |
| 2.3.0     | Yes         | Yes      |
| 2.3.1     | Yes         | Yes      |
| 2.3.2     | Yes         | Yes      |
| 2.3.3     | Yes         | Yes      |
| 2.3.4     | Yes         | Yes      |
| 2.3.5     | Yes         | Yes      |

### Install

```bash
php bin/magento module:enable MageHook_Hook
php bin/magento setup:upgrade
```

Move into the backend of your Magento 2 installation and navigate through the main menu **Stores > Settings > Configuration** and open the **Services** tab. Click on the **MageHook** section and search for the **Active** option within the **General** group. MageHook will only work when this setting is turned on.

### Submodule version regulations

**x**.x.x | Major incrementation can be applied when one or more 'new' events are based or dependent on an updated major version of the MageHook\_Hook extension.

x.**x**.x | Minor incrementation can be applied when one or more new events are added to the package

x.x.**x** | Patch incrementation can be applied when one or more existing events were fixed or upgraded


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://magehook.gitbook.io/magehook/master.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
