/chatfuel-class

Json response for Chatfuel API

Primary LanguagePHPMIT LicenseMIT

Chatfuel class for PHP

StyleCI Build Status Maintainability Version Test Coverage

Install

composer require ging-dev/chatfuel

Usage

<?php
use Gingdev\Chatfuel;

require 'vendor/autoload.php';

$chatfuel = new Chatfuel();

$chatfuel->sendText('Hello world');
$chatfuel->sendImage('http://domain.com/abc.png');

header('Content-type: application/json');
echo json_encode($chatfuel->getResponse());