PHPackages                             chezrd/jivochat-webhooks-api - 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. chezrd/jivochat-webhooks-api

ActiveLibrary

chezrd/jivochat-webhooks-api
============================

Library for Jivochat (Jivosite) Webhooks API integration.

2.1.8(2y ago)0601MITPHPPHP ^7.3 || ^8

Since May 15Pushed 2y agoCompare

[ Source](https://github.com/ChezRD/jivochat-webhooks-api)[ Packagist](https://packagist.org/packages/chezrd/jivochat-webhooks-api)[ Docs](https://github.com/ChezRD/jivochat-webhooks-api)[ RSS](/packages/chezrd-jivochat-webhooks-api/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (4)Used By (0)

Jivochat Webhooks API
=====================

[](#jivochat-webhooks-api)

[![Latest Stable Version](https://camo.githubusercontent.com/fc9b2e98182640303632ac4fd2c00bfc67773b30fab255ae50c5820f9a827d08/68747470733a2f2f706f7365722e707567782e6f72672f6368657a72642f6a69766f636861742d776562686f6f6b732d6170692f762f737461626c65)](https://packagist.org/packages/chezrd/jivochat-webhooks-api)[![License](https://camo.githubusercontent.com/e43dc6fbbda1fa185e6dbc02d8e507dff61bf464d7ee8db20630e95fbee6303e/68747470733a2f2f706f7365722e707567782e6f72672f6368657a72642f6a69766f636861742d776562686f6f6b732d6170692f6c6963656e7365)](https://packagist.org/packages/chezrd/jivochat-webhooks-api)

Library for [Jivochat](https://www.jivochat.com) ([Jivosite](https://www.jivosite.ru)) Webhooks API integration.

This library allows you to integrate with Jivosite Webhooks API and:

- handle API calls in event-based manner;
- convert API requests JSON data in particular event objects;
- generate API responses;
- save original request (and generated response) data into MySQL or MongoDB server, and log it via Monolog.

For Russian documentation see [README-ru.md](README-ru.md).

Requirements
------------

[](#requirements)

The library requires PHP 7.0 or above for basic usage.

Optional requirements:

- [PDO extension](http://php.net/manual/en/book.pdo.php) allows logging of Webhooks request/response data to a MySQL server;
- [Monolog library](https://github.com/Seldaek/monolog) allows logging of Webhooks request/response using Monolog;
- [MongoDB library](https://github.com/mongodb/mongo-php-library) allows logging of Webhooks request/response data to a MongoDB server.

It is strongly recommended to have at least one of above loggers installed to hold a "backup" of original requests sent via Webhooks API.

Installation
------------

[](#installation)

The preferred way to install this library is through [Composer](http://getcomposer.org/download/). To install the latest version, run:

```
composer require chezrd/jivochat-webhooks-api

```

Basic usage
-----------

[](#basic-usage)

```
