🌐 Website and API application powering the Beat Saber Server Browser mod (https://bssb.app)
This is the PHP source code powering the API server that is used by BeatSaberServerBrowser.
- 📝 Receives and stores game information from players hosting matches
- 😎 Lets mod users browse and filter compatible and relevant games
- 🌐 Provides a public site where you can view games and stats
- Web server (recommended: nginx)
- PHP 8.1+ with extensions:
curl
,dom
,json
,mbstring
,pdo
,xml
- Composer
- MySQL (or compatible) database server
-
Clone the repository and run
composer install --no-dev
(suggested path:/var/www/bssb.app
). -
Configure your web server to direct all requests to
public/index.php
, nginx sample:location / { try_files $uri $uri/ /index.php$is_args$args; }
-
Seed or migrate the database:
vendor/bin/phinx migrate
-
Create a
config.php
in the application root directory, using the providedconfig.sample.php
. -
Enable cron jobs, by adding the following line to the
crontab
:* * * * * cd /var/www/bssb.app && vendor/bin/crunz schedule:run