PHPackages                             retailcrm/mg-bot-api-client-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. retailcrm/mg-bot-api-client-php

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

retailcrm/mg-bot-api-client-php
===============================

PHP client for MG Bot API

v1.4.21(3mo ago)34.0k↓11.1%15MITPHPPHP &gt;=7.3CI passing

Since Jun 28Pushed 3mo ago3 watchersCompare

[ Source](https://github.com/retailcrm/mg-bot-api-client-php)[ Packagist](https://packagist.org/packages/retailcrm/mg-bot-api-client-php)[ Docs](http://www.retailcrm.ru/)[ RSS](/packages/retailcrm-mg-bot-api-client-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (11)Versions (51)Used By (0)

[![Build Status](https://github.com/retailcrm/mg-bot-api-client-php/workflows/ci/badge.svg)](https://github.com/retailcrm/mg-bot-api-client-php/actions)[![Coverage](https://camo.githubusercontent.com/e2e74b2a244883a81b63a6e087e3004672d4e5ee03dd2aea8c6966ca053b6749/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f67682f72657461696c63726d2f6d672d626f742d6170692d636c69656e742d7068702f6d61737465722e7376673f6c6f676f3d636f6465636f76266c6f676f436f6c6f723d7768697465)](https://codecov.io/gh/retailcrm/mg-bot-api-client-php)[![Latest stable](https://camo.githubusercontent.com/67535a89fcdca5d28f1ee1fff5b44a75a6342282814c863096f6e92278598e9c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f72657461696c63726d2f6d672d626f742d6170692d636c69656e742d7068702e737667)](https://packagist.org/packages/retailcrm/mg-bot-api-client-php)[![PHP from Packagist](https://camo.githubusercontent.com/907db6704b7caa2973bd4ba613c50e73e45f75045f67d547caa50ed13621383e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f72657461696c63726d2f6d672d626f742d6170692d636c69656e742d7068702e7376673f6c6f676f3d706870266c6f676f436f6c6f723d7768697465)](https://packagist.org/packages/retailcrm/mg-bot-api-client-php)

Message Gateway Bot API PHP client
==================================

[](#message-gateway-bot-api-php-client)

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

[](#requirements)

- PHP 7.3 and above
- PHP's cURL support
- PHP's JSON support

Install
-------

[](#install)

1. Get [composer](https://getcomposer.org/download/)
2. Run into your project directory:

```
composer require retailcrm/mg-bot-api-client-php ~1.*
```

If you have not used `composer` before, include autoloader into your project.

```
require 'path/to/vendor/autoload.php';
```

Usage
-----

[](#usage)

### Assign dialog

[](#assign-dialog)

```
