2017 © Pedro Peláez
 

package controller

Controller for routing Facebook's Messenger Bot API

image

slim-messenger/controller

Controller for routing Facebook's Messenger Bot API

  • Friday, June 3, 2016
  • by iamn00b
  • Repository
  • 1 Watchers
  • 2 Stars
  • 20 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

Slim Messenger Controller

Build Status GitHub license, (*1)

Easily set up your SlimPHP Routes to integrate with Facebook's Messenger Bot API. Slim Messenger Controller intended to be a RESTful Controller to be used by SlimPHP routes, and easily set up to be injected at SlimPHP Container. While this is created for SlimPHP, Slim Messenger Controller can be used as controller at any framework that implement PSR7 interfaces for its Request and Response objects, (*2)

Installation

composer install slim-messenger/controller

Usage

$appToken = 'YOUR_APP_TOKEN';
$verifyToken = 'YOUR_VERIFY_TOKEN';

// initiate controller
$messengerController = new SlimMessenger\Controller($verifyToken, $appToken);

//slim routes
$app->any('/webhook[/]', $messengerController);

You can also inject it to SlimPHP Container, (*3)

$container = $app->getContainer();

$container['bot'] = function($c) {
    $appToken = 'YOUR_APP_TOKEN';
    $verifyToken = 'YOUR_VERIFY_TOKEN';

    $messangerBot = new SlimMessengerController($verifyToken, $appToken);

    return $messangerBot;
};

//slim routes
$app->any('/webhook[/]', $container['bot']);

Documentation

see DOCUMENTATION, (*4)

The Versions

03/06 2016

dev-master

9999999-dev

Controller for routing Facebook's Messenger Bot API

  Sources   Download

BSD Clause-2

The Requires

 

The Development Requires

by Thirafi Dide

03/06 2016

dev-master-dev

dev-master-dev

Controller for routing Facebook's Messenger Bot API

  Sources   Download

BSD Clause-2

The Requires

 

The Development Requires

by Thirafi Dide

03/06 2016

0.0.0a

0.0.0.0-alpha

Controller for routing Facebook's Messenger Bot API

  Sources   Download

BSD Clause-2

The Requires

 

The Development Requires

by Thirafi Dide

02/06 2016

dev-documentation

dev-documentation

Controller for routing Facebook's Messenger Bot API

  Sources   Download

BSD Clause-2

The Requires

 

The Development Requires

by Thirafi Dide

02/06 2016

0.0.0

0.0.0.0

Controller for routing Facebook's Messenger Bot API

  Sources   Download

BSD Clause-2

The Requires

 

The Development Requires

by Thirafi Dide

02/06 2016

dev-travis-integration

dev-travis-integration

Controller for routing Facebook's Messenger Bot API

  Sources   Download

BSD Clause-2

The Requires

 

The Development Requires

by Thirafi Dide