2017 © Pedro Peláez
 

library skype-bot-sdk

PHP SDK for Microsoft skype bot framework

image

penicylline/skype-bot-sdk

PHP SDK for Microsoft skype bot framework

  • Thursday, March 30, 2017
  • by penicylline
  • Repository
  • 1 Watchers
  • 15 Stars
  • 1,632 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 12 Forks
  • 0 Open issues
  • 2 Versions
  • 22 % Grown

The README.md

skype-bot-sdk

Skype bot framework PHP sdk, (*1)

Build Status Code Climate Test Coverage Issue Count, (*2)

How to use

Create new application, get app id and app password, (*3)

https://apps.dev.microsoft.com/#/quickstart/skypebot, (*4)

Create your bot, (*5)

https://dev.botframework.com/bots/new, (*6)

Set your bot's "Messaging endpoint" to https://yourdomain/listener.php, (*7)

Installation, (*8)

composer require penicylline/skype-bot-sdk or require_once /SkypeBot/autoload.php, (*9)

Initialize bot, (*10)

$dataStorate = new \SkypeBot\Storage\FileStorage(sys_get_temp_dir());
$config = new \SkypeBot\Config(
    'YOUR SKYPE BOT ID',
    'YOUR SKYPE BOT SECRET'
);

$bot = \SkypeBot\SkypeBot::init($config, $dataStorate);

In your notification listener (listener.php), (*11)

$bot->getNotificationListener()->setMessageHandler(
    function($payload) {
        file_put_contents(
            sys_get_temp_dir() . '/conversation_id.txt',
            $payload->getConversation()->getId();
        );
    }
);

Send message to conversation, (*12)

$bot->getApiClient()->call(
    new \SkypeBot\Command\SendMessage(
        'Hello World.',
        'Your conversation id'
    )
);

The Versions

30/03 2017

dev-master

9999999-dev

PHP SDK for Microsoft skype bot framework

  Sources   Download

The Requires

  • php >=5.5
  • ext-curl *

 

The Development Requires

by Avatar penicylline

16/12 2016

v0.1-alpha

0.1.0.0-alpha

PHP SDK for Microsoft skype bot framework

  Sources   Download

The Requires

  • php >=5.5
  • ext-curl *

 

The Development Requires

by Avatar penicylline