PHPackages                             olegf13/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. [API Development](/categories/api)
4. /
5. olegf13/jivochat-webhooks-api

ActiveLibrary[API Development](/categories/api)

olegf13/jivochat-webhooks-api
=============================

Library for Jivochat (Jivosite) Webhooks API integration.

1.1(9y ago)414.7k↓26.7%9[2 issues](https://github.com/Olegf13/jivochat-webhooks-api/issues)MITPHPPHP &gt;=7.0.0

Since Apr 26Pushed 9y ago1 watchersCompare

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

READMEChangelog (2)Dependencies (4)Versions (4)Used By (0)

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

[](#jivochat-webhooks-api)

[![Latest Stable Version](https://camo.githubusercontent.com/720ccdbfd63d6077addc2e5a80001267913f53a993f5b274124dc0c41bc3cc94/68747470733a2f2f706f7365722e707567782e6f72672f6f6c65676631332f6a69766f636861742d776562686f6f6b732d6170692f762f737461626c65)](https://packagist.org/packages/olegf13/jivochat-webhooks-api)[![License](https://camo.githubusercontent.com/bfec2f236874f89db87a5f4a317f3f48c0d5152c644a5f23f7b731f37e3321ec/68747470733a2f2f706f7365722e707567782e6f72672f6f6c65676631332f6a69766f636861742d776562686f6f6b732d6170692f6c6963656e7365)](https://packagist.org/packages/olegf13/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 olegf13/jivochat-webhooks-api

```

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

[](#basic-usage)

```
