Slim Framework based Statbus!
- This application is still under heavy development. There are hardcoded references to tgstation/tgstation that cannot be easily overridden without forking this repo.
- 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
- Configure your webserver for Slim.
- Clone this repo into the document root you specified in step 1.
- Run
composer update
andcomposer dump-autoload -o
. - Copy
.env.example
to.env
and adjust your settings accordingly.
Some data, when parsed, can be saved to a second database. To enable this function:
- Make sure the
ALT_DB_*
variables are set in your.env
. See.env.example
for details. - Initialize the second database using the table structure defined in
sql/alt_db.sql
.
- Run
git pull
. - Run
composer update
andcomposer dump-autoload -o
. - (Maybe) Remove the twig cache at
tmp/twig
.
- Apply any updates specified in
sql/sqlchangelog.md
.
##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. Seesrc/conf/example-servers.json
.src/conf/ranks.json
holds the definitions for admin rank badge colors and icons. Seesrc/conf/example-ranks.json
for examples. The icon field sources icons from FontAwsome. You only need the name of the icon, the part afterfa-
.
##Development Slimbus can be set up in a local development environment with Docker.