Skip to content
Statbus, but better!
Branch: master
Clone or download
nfreader Polls
Using a lot of code from the previous iteration of statbus
Latest commit 3dbd481 May 6, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
public Log parsing! Nov 16, 2018
sql SQL Changes Dec 17, 2018
src Polls May 7, 2019
templates Polls May 7, 2019
.env.example Election time! Feb 27, 2019
.gitignore Support for longer tracking scripts Mar 14, 2019
.htaccess Library is back Nov 19, 2018
Dockerfile Adds support for bz2 which was somehow missing Apr 11, 2019
composer.lock Jobs are now user-configurable Dec 3, 2018
docker-compose.yml docker compose! whee! Feb 7, 2019
index.php Hrm Feb 27, 2019


Slim Framework based Statbus!


  1. This application is still under heavy development. There are hardcoded references to tgstation/tgstation that cannot be easily overridden without forking this repo.
  2. Support and help for downstream installations is NOT being offered at this time. This will change as this project matures. PRs and bug reports are always welcome.


  • PHP 7.2
  • Composer
  • A MySQL user with read-only privileges to your Space Station 13 database
  • (optional) A second database for saving some parsed data


  1. Configure your webserver for Slim.
  2. Clone this repo into the document root you specified in step 1.
  3. Run composer update and composer dump-autoload -o.
  4. Copy .env.example to .env and adjust your settings accordingly.

Second Database (Alt DB)

Some data, when parsed, can be saved to a second database. To enable this function:

  1. Make sure the ALT_DB_* variables are set in your .env. See .env.example for details.
  2. Initialize the second database using the table structure defined in sql/alt_db.sql.


  1. Run git pull.
  2. Run composer update and composer dump-autoload -o.
  3. (Maybe) Remove the twig cache at tmp/twig.

Second Database (Alt DB)

  1. Apply any updates specified in sql/

##Customizations There are several files you can edit in order to tailor Statbus to your codebase:

  • src/conf/servers.json can be used to map server information. At the minimum, you must specify a server port and name. See src/conf/example-servers.json.
  • src/conf/ranks.json holds the definitions for admin rank badge colors and icons. See src/conf/example-ranks.json for examples. The icon field sources icons from FontAwsome. You only need the name of the icon, the part after fa-.
  • src/conf/jobs.json can be used to customize what jobs are looked at for querying role_time data (as seen on /me). You should copy src/conf/example-jobs.json into your jobs.json and add or remove jobs from that listing.

##Development Slimbus can be set up in a local development environment with Docker.

You can’t perform that action at this time.