Skip to content

manychat/manychat-api-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Dec 11, 2020
9ab52cc · Dec 11, 2020

History

50 Commits
Dec 11, 2020
Dec 11, 2020
Jul 31, 2019
Sep 12, 2019
Sep 16, 2019
Dec 18, 2019

Repository files navigation

ManyChat API PHP library

Installation

To install the library using Composer run this command in your command line:

composer require manychat/manychat-api

or edit your project's composer.json file to require manychat/manychat-api:

{
    ...
    "require": {
        ...
        "manychat/manychat-api": "*"
    }
}

and run composer update in your command line.

Usage

After installing the library, you need to get the ManyChat API token in the API tab of the settings of your page at manychat.com. Here are some examples of the library usage with 1234567890123456:1234567890ABCDEFGHIJKLMNOPQRSTUV API token:

As an instance:

use ManyChat\ManyChat;

$api = new ManyChat('1234567890123456:1234567890ABCDEFGHIJKLMNOPQRSTUV');
$pageInfo = $api->fb->page->getInfo();

As a singleton:

use ManyChat\ManyChat;

ManyChat::fbInit('1234567890123456:1234567890ABCDEFGHIJKLMNOPQRSTUV');
$pageInfo = ManyChat::fbApi()->fb->page->getInfo();

Documentation

List of available ManyChat API methods you can get at the ManyChat API homepage.

List of implemented in this library methods you can get at the ManyChat API PHP library documentation: