All Projects → radutopala → skype-bot-php

radutopala / skype-bot-php

Licence: MIT license
PHP CLI/Library for the Skype Bot API

Programming Languages

PHP
23972 projects - #3 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to skype-bot-php

BotBuilder-Watson
A Microsoft Bot Framework & IBM Watson bot
Stars: ✭ 19 (-70.31%)
Mutual labels:  skype, bot-framework, skypebot
sbotify
your personal bot that plays spotify music
Stars: ✭ 25 (-60.94%)
Mutual labels:  skype, bot-framework
alter-nlu
Natural language understanding library for chatbots with intent recognition and entity extraction.
Stars: ✭ 45 (-29.69%)
Mutual labels:  bot-framework
SharePointAdminBot
SharePoint Administration Bot
Stars: ✭ 19 (-70.31%)
Mutual labels:  bot-framework
hikari
A Discord API wrapper for Python and asyncio built on good intentions.
Stars: ✭ 631 (+885.94%)
Mutual labels:  bot-framework
dynamic-dns-netcup-api
A simple dynamic DNS client written in PHP for use with the netcup DNS API.
Stars: ✭ 127 (+98.44%)
Mutual labels:  php-cli
Hutoma-Conversational-AI-Platform
Hu:toma AI is an open source stack designed to help you create compelling conversational interfaces with little effort and above industry accuracy
Stars: ✭ 35 (-45.31%)
Mutual labels:  bot-framework
marconibot
Marco... Polo - Poloni.... Marconi... Poloniex Trade bot
Stars: ✭ 24 (-62.5%)
Mutual labels:  bot-framework
Holobot
HoloLens bot demo
Stars: ✭ 26 (-59.37%)
Mutual labels:  bot-framework
php8-xdebug
PHP 8.0 for development and production usage. With nginx, brotli, xdebug, JIT and more...
Stars: ✭ 17 (-73.44%)
Mutual labels:  php-cli
spanky.py
Chat-bot overlay framework that can run on top of any python-based bot and call plugins on various events
Stars: ✭ 14 (-78.12%)
Mutual labels:  bot-framework
airy
💬 Open source conversational platform to power conversations with an open source Live Chat, Messengers like Facebook Messenger, WhatsApp and more - 💎 UI from Inbox to dashboards - 🤖 Integrations to Conversational AI / NLP tools and standard enterprise software - ⚡ APIs, WebSocket, Webhook - 🔧 Create any conversational experience
Stars: ✭ 299 (+367.19%)
Mutual labels:  bot-framework
mik
The Move to Islandora Kit is an extensible PHP command-line tool for converting source content and metadata into packages suitable for importing into Islandora (or other digital repository and preservations systems).
Stars: ✭ 32 (-50%)
Mutual labels:  php-cli
Jasmin-Ransomware
Jasmin Ransomware is an advanced red team tool (WannaCry Clone) used for simulating real ransomware attacks. Jasmin helps security researchers to overcome the risk of external attacks.
Stars: ✭ 84 (+31.25%)
Mutual labels:  bot-framework
cerb-release
For over 20 years, teams of all sizes have used Cerb to manage their email workloads. Whether you're a solo founder replying to a few support messages per day, or a team with hundreds of members replying to thousands of messages per hour, you can serve your audience faster with Cerb's time-tested tools. Development at: https://github.com/jstande…
Stars: ✭ 37 (-42.19%)
Mutual labels:  bot-framework
awesome-botframework
🤖 A curated list of awesome Microsoft Bot Framework related things
Stars: ✭ 30 (-53.12%)
Mutual labels:  bot-framework
chatto
Chatto is a minimal chatbot framework in Go.
Stars: ✭ 98 (+53.13%)
Mutual labels:  bot-framework
necord
🤖 A module for creating Discord bots using NestJS, based on Discord.js
Stars: ✭ 77 (+20.31%)
Mutual labels:  bot-framework
line-chatbot-boilerplate
Opinionated Boilerplate for your Line Messenger Chat Bot
Stars: ✭ 20 (-68.75%)
Mutual labels:  bot-framework
CAI
🤖 又一个 QQ 协议支持库,使用 Python 编写 Yet Another Bot Framework for Tencent QQ Written in Python
Stars: ✭ 121 (+89.06%)
Mutual labels:  bot-framework

PHP CLI/Library for the Skype Bot API

API Docs: https://developer.microsoft.com/en-us/skype/bots/docs

Installation

There are 2 ways to install it:

  • Download the Phar
  • Install as a Composer Package

Download the Phar

download the latest version from the Releases section or from the cli:

$ wget https://github.com/radutopala/skype-bot-php/releases/download/1.0.0/skype.phar && chmod +x skype.phar

Install as a Composer Package

$ composer require radutopala/skype-bot-php

Usage

programmatic:

<?php

use Skype\Client;

$client = new Client([
    'clientId' => '<yourClientId>',
    'clientSecret' => '<yourClientSecret>',
]);
$api = $client->authorize()->api('conversation');   // Skype\Api\Conversation
$api->activity('29:<skypeHash>', 'Your message');

cli:

Here some usage examples.

$ bin/skype auth <yourClientId>
$ bin/skype conversation:activity <to> <message>

Or with the phar file.

php skype.phar auth <yourClientId>
php skype.phar conversation:activity <to> <message>

Tips

  • If used as a library, the HTTP Guzzle Client will automatically try to re-authenticate using a Guzzle middleware, if the access_token will expire in the following 10 minutes.

  • If used as a phar, you can update it to latest version using skype.phar self-update

  • If used as a library, you can store the token configs in your own preffered file path, as follows:

    $client = new Client([
         'clientId' => '<yourClientId>',
         'clientSecret' => '<yourClientSecret>',
         'fileTokenStoragePath' => '<yourOwnPath>',
    ]);
    
  • You can also write your own TokenStorageInterface::class

    $client = new Client([
        'clientId' => '<yourClientId>',
        'clientSecret' => '<yourClientSecret>',
        'tokenStorageClass' => DatabaseTokenStorage::class
    ]);
    
  • And you can also pass your custom tokenStorageService, a service that must implement TokenStorageInterface; usable in Symfony scenarios

    $client = new Client([
        'clientId' => '<yourClientId>',
        'clientSecret' => '<yourClientSecret>',
        'tokenStorageService' => $service
    ]);
    
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].