PHPackages                             mikechip/chatapi - 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. mikechip/chatapi

AbandonedArchivedLibrary

mikechip/chatapi
================

Simple middleware to work with Chat-API.com

2.0.0(7y ago)2938.9k↓30.6%19[1 PRs](https://github.com/bssth/whatsapp-chatapi-sdk/pulls)1GPL-2.0-or-laterPHPPHP &gt;=7.0.0

Since Apr 27Pushed 1y ago5 watchersCompare

[ Source](https://github.com/bssth/whatsapp-chatapi-sdk)[ Packagist](https://packagist.org/packages/mikechip/chatapi)[ RSS](/packages/mikechip-chatapi/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)DependenciesVersions (2)Used By (1)

Chat-API.com SDK
================

[](#chat-apicom-sdk)

This library makes work with chat-api.com easier

### Deprecated

[](#deprecated)

#### The library was made quite a while ago and may be out of date. Please make a fork if you want to use it.

[](#the-library-was-made-quite-a-while-ago-and-may-be-out-of-date-please-make-a-fork-if-you-want-to-use-it)

Installation
============

[](#installation)

Just download chatapi.class.php or use Composer:

```
composer require mikechip/chatapi

```

Create instance
===============

[](#create-instance)

```
  $api = new ChatApi(
        '_token_', // Chat-Api.com token
        'https://foo.chat-api.com/instance1234' // Chat-Api.com API url
  );

```

Get QR code
===========

[](#get-qr-code)

Proxying via PHP:

```
header('Content-Type: image/png');
readfile( $api->getQRCode() );

```

Or show directly:

```
