PHPackages                             terentev-space/kithook-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. terentev-space/kithook-php

ActiveLibrary[HTTP &amp; Networking](/categories/http)

terentev-space/kithook-php
==========================

KitHook client for PHP

0.1.2(4y ago)0222Apache-2.0PHPPHP &gt;=7.1

Since Mar 8Pushed 4y ago1 watchersCompare

[ Source](https://github.com/terentev-space/kithook-php)[ Packagist](https://packagist.org/packages/terentev-space/kithook-php)[ Docs](https://github.com/terentev-space/kithook-php)[ RSS](/packages/terentev-space-kithook-php/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (2)Dependencies (1)Versions (5)Used By (2)

KitHook PHP
===========

[](#kithook-php)

[![Latest Version](https://camo.githubusercontent.com/614cc6042125050a975fd8190c2cec6790842b5febbd5c9f1ecebb2549337a8f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f746572656e7465762d73706163652f6b6974686f6f6b2d7068702e7376673f7374796c653d666c61742d737175617265)](https://github.com/terentev-space/kithook-php/releases)[![Software License](https://camo.githubusercontent.com/effa8235d7eba5e273e8712a2c110b76565138e21b71cdd10ea6082613f07943/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4170616368655f322e302d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Total Downloads](https://camo.githubusercontent.com/66c155acdac2d2fff773bc94ea86fb1d8a8f292ac4e70030baaf318e635a2708/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f746572656e7465762d73706163652f6b6974686f6f6b2d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/terentev-space/kithook-php)

#### 🚧 Attention: the project is currently under development! 🚧

[](#-attention-the-project-is-currently-under-development-)

**Note:** Before using it, you need to deploy and configure [KitHook](https://github.com/terentev-space/kithook)

KitHook client for PHP

Install
-------

[](#install)

For RabbitMq use [kithook-php-rabbitmq](https://github.com/terentev-space/kithook-php-rabbitmq)

```
$ composer require terentev-space/kithook-php-rabbitmq
```

For Kafka use [kithook-php-kafka](https://github.com/terentev-space/kithook-php-kafka)

```
$ composer require terentev-space/kithook-php-kafka
```

Usage
-----

[](#usage)

Data:

```
$yourWebhookUri = 'https://example.com';
$yourWebhookId = 'myId-123';

$yourElseContentType = 'application/xml';

// Json
$yourWebhookJsonData = [
    'anything'
];
// Form
$yourWebhookFormData = [
    'param1' => 'value1',
];
// Query
$yourWebhookQueryData = [
    'param1' => 'value1',
];
// Xml
$yourWebhookXmlData =
