- Run
compose install
(or justupdate
) - Generate autoload.php with
composer dump-autoload -o
(-o
is for production, can be omitted) - Profit!
Should work under any recent webserver, simplest way is to just use built in webserver for Php (7.3 for example) and just run php -S localhost:8888
Returns state of servers, defined in server.json file (it has to be place in the same directory as index.php)
server.json file example:
[
{
"type": "minecraft",
"host": "coolgamerguys.gov:25565"
},
{
"type": "warsow",
"host": "192.168.42.69:44400"
}
]
Return state of server/servers.
Example bodies (raw,json)
{
"type":"tf2",
"ip":"enemiespotted.io",
"port":"27015"
}
{
"servers":
[
{
"type":"minecraft",
"ip":"coolgamerguys.gov,
"port":"25565"
},
{
"type":"warsow",
"ip":"192.168.42.69",
"port":"44400"
}
]
}
- Elementary framework (1.3 and up)
- GameQ library (3.0 and up)