PHPackages                             capetown/capetown - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. capetown/capetown

ActiveFramework[Framework](/categories/framework)

capetown/capetown
=================

Keybase.io Bot Framework in PHP

0.1.3(8y ago)391MITPHPPHP &gt;=7.1.0

Since Sep 30Pushed 4y agoCompare

[ Source](https://github.com/tstrijdhorst/capetown)[ Packagist](https://packagist.org/packages/capetown/capetown)[ Docs](https://github.com/tstrijdhorst/capetown)[ RSS](/packages/capetown-capetown/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (10)Used By (0)

A keybase.io bot framework
==========================

[](#a-keybaseio-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.**

This is a small framework for writing keybase.io bots in PHP.

Usage
=====

[](#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  (param1 param2 param3 ...)`.

Architecture
------------

[](#architecture)

##### Note

[](#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.*

*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.*

### The runner (this)

[](#the-runner-this)

This is where you add the commands you want to enable via composer and run the actual bot with.

### [The core](https://github.com/tstrijdhorst/capetown-core)

[](#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`.

### Official command plugins

[](#official-command-plugins)

- [Giphy Command](https://github.com/tstrijdhorst/capetown-giphy)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

4

Last Release

3141d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1f2982fcc095f741199526673e15cf9e435e31f030ce468c3d857e28faf4ddbe?d=identicon)[tstrijdhorst](/maintainers/tstrijdhorst)

---

Tags

chatbotkeybase.io

### Embed Badge

![Health badge](/badges/capetown-capetown/health.svg)

```
[![Health](https://phpackages.com/badges/capetown-capetown/health.svg)](https://phpackages.com/packages/capetown-capetown)
```

###  Alternatives

[botman/studio

BotMan Chatbot framework.

33427.6k](/packages/botman-studio)[mpociot/botman-laravel-starter

BotMan Chatbot framework.

3335.4k](/packages/mpociot-botman-laravel-starter)[digitalstars/simplevk

Powerful PHP library/framework for VK API bots, supporting LongPoll &amp; Callback &amp; OAuth

883.9k3](/packages/digitalstars-simplevk)[doppar/framework

The Doppar Framework

366.7k8](/packages/doppar-framework)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
