2017 © Pedro Peláez
 

symfony-bundle botman-bundle

image

maalls/botman-bundle

  • Thursday, February 22, 2018
  • by maalls
  • Repository
  • 1 Watchers
  • 4 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

This bundle helps you configure and create BotMan within the symfony framework., (*1)

Requirement

Symfony 4, php 7+, (*2)

Installation

Install the symfoy bundle using composer, (*3)

composer require maalls/botman-bundle

Add the bot config in the config/service.yaml as parameter ``` yaml, (*4)

parameters: botman: botman: conversation_cache_time: 30 botframework: app_id: xxxxxxxxxx app_key: xxxxxxxxxx, (*5)


# Example Create the bot via autowiring: ```php // in src/Service/MyService.php function __construct(\Maalls\BotManBundle\Service\Factory $factory) { // Create BotMan with BotFramework Driver. $bot = $factory->createBotFramework(); // \BotMan\BotMan\BotMan // Config can be added or overwritten $bot = $factory->createBotFramework(["botman" => ["conversation_cache_time" => 5]]); // OR with a specific driver $bot = $factory->create(\BotMan\Drivers\Telegram\TelegramDriver::class, ["telegram" => ["token" => "xxxx"]]); $bot->hears("(.*)", function($bot, $message) { $bot->reply("Anyway, hello."); }); }

Testing

./vendor/bin/phpunit tests/

The Versions

22/02 2018

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

 

The Development Requires

22/02 2018

v1.2.2

1.2.2.0

  Sources   Download

MIT

The Requires

 

The Development Requires

22/02 2018

v1.2.1

1.2.1.0

  Sources   Download

MIT

The Requires

 

The Development Requires

22/02 2018

v1.2.0

1.2.0.0

  Sources   Download

MIT

The Requires

 

The Development Requires

22/02 2018

v1.1.1

1.1.1.0

  Sources   Download

MIT

The Requires

 

The Development Requires

22/02 2018

v1.1.0

1.1.0.0

  Sources   Download

MIT

The Requires

 

The Development Requires

21/02 2018

v1.0.0

1.0.0.0

  Sources   Download

MIT

The Requires

  • maalls/driver-botframework ^1

 

The Development Requires