2017 © Pedro Peláez
 

framework capetown

Keybase.io Bot Framework in PHP

image

capetown/capetown

Keybase.io Bot Framework in PHP

  • Wednesday, December 27, 2017
  • by tstrijdhorst
  • Repository
  • 0 Watchers
  • 0 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 10 Versions
  • 0 % Grown

The README.md

A keybase.io bot framework

This package is currently in alpha mode. It's fully functional but the API implementation is far from complete. Accepting PRs for further implementation., (*1)

This is a small framework for writing keybase.io bots in PHP., (*2)

Usage

  • Clone this repo
  • Install the commands you want with composer
  • Add the FQN of the commandclass to EnabledCommands.php
  • (If Necessary) Copy the name.env.dist file from the plugin to config/name.env and fill in the required information
  • Run app/run.php and you are good to go!

You can trigger the commands by sending a message to the bot prefixed with @botname <commandname> (param1 param2 param3 ...)., (*3)

Architecture

Note

While the author really likes to keep things separate there is nothing from stopping you to implement your plugin in a different way. As long as you implement the CommandInterface and you are able to add the FQN of your command to the app/EnabledCommands.php it will be fine., (*4)

For plugin development in might be handy to fork this framework and develop the plugin locally first. An example Command has been provided in app/commands/ExampleCommand.php to illustrate the design further., (*5)

The runner (this)

This is where you add the commands you want to enable via composer and run the actual bot with., (*6)

The core

This is all the core code that both the runner and all the command plugins depend on. In this way we ensure that both the runner and all the plugins never depend on eachother and each is free to do what they want as long as you implement the CommmandInterface., (*7)

Official command plugins

The Versions

27/12 2017

dev-pluginmanager

dev-pluginmanager https://github.com/tstrijdhorst/capetown

Keybase.io Bot Framework in PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Tim Strijdhorst

chatbot keybase.io

27/12 2017

dev-interactive_configuration

dev-interactive_configuration https://github.com/tstrijdhorst/capetown

Keybase.io Bot Framework in PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Tim Strijdhorst

chatbot keybase.io

13/10 2017

dev-master

9999999-dev https://github.com/tstrijdhorst/capetown

Keybase.io Bot Framework in PHP

  Sources   Download

MIT

The Requires

 

by Tim Strijdhorst

chatbot keybase.io

01/10 2017

0.1.3

0.1.3.0 https://github.com/tstrijdhorst/capetown

Keybase.io Bot Framework in PHP

  Sources   Download

MIT

The Requires

 

by Tim Strijdhorst

chatbot keybase.io

01/10 2017

0.1.2

0.1.2.0 https://github.com/tstrijdhorst/capetown

  Sources   Download

MIT

The Requires

 

by Tim Strijdhorst

chatbot keybase.io

30/09 2017

0.1.1

0.1.1.0 https://github.com/tstrijdhorst/capetown

  Sources   Download

MIT

The Requires

 

by Tim Strijdhorst

chatbot keybase.io

30/09 2017

0.1.0

0.1.0.0 https://github.com/tstrijdhorst/capetown

  Sources   Download

MIT

The Requires

 

by Tim Strijdhorst

chatbot keybase.io

30/09 2017

dev-enable_giphy

dev-enable_giphy https://github.com/tstrijdhorst/capetown

  Sources   Download

MIT

The Requires

 

by Tim Strijdhorst

chatbot keybase.io

30/09 2017

dev-use_plugin_structure

dev-use_plugin_structure https://github.com/tstrijdhorst/capetown

  Sources   Download

MIT

The Requires

 

by Tim Strijdhorst

chatbot keybase.io

30/09 2017

dev-command_structure

dev-command_structure https://github.com/tstrijdhorst/capetown

  Sources   Download

MIT

The Requires

 

by Tim Strijdhorst

chatbot keybase.io