switch to composer for ts3phpframework dependency management

master
lub 5 years ago
parent 1affc566d0
commit dcbe8d8297

3
.gitmodules vendored

@ -1,3 +0,0 @@
[submodule "ts3phpframework"]
path = ts3phpframework
url = https://github.com/planetteamspeak/ts3phpframework.git

@ -1,7 +1,17 @@
FROM docker.io/composer AS composer
WORKDIR /app
COPY composer.json main.php functions.php ./
RUN composer install
FROM docker.io/php:alpine
WORKDIR /src
COPY --from=composer /app /app
COPY . ./
WORKDIR /app
ENTRYPOINT ["php", "main.php"]

@ -0,0 +1,5 @@
{
"require": {
"planetteamspeak/ts3-php-framework": "*"
}
}

@ -1,6 +1,4 @@
<?php
$framework = 'ts3phpframework/TeamSpeak3.php'; //get the TeamSpeak 3 PHP Framework from http://addons.teamspeak.com/directory/tools/integration/TeamSpeak-3-PHP-Framework.html
$roots = array('Game Area', 'WoW');
$exceptions = array('Ladder Room');
$default = 'Group 1';

@ -1,7 +1,7 @@
<?php
require_once('config.inc.php');
require_once('functions.php');
require_once($framework);
require_once('vendor/autoload.php');
$server = TeamSpeak3::factory('serverquery://'.$user.':'.$passwd.'@'.$host.':'.$queryport.'/?server_port='.$voiceport);

@ -1 +0,0 @@
Subproject commit 3b7a20e68bc556981f9a41782adb9933394605a9
Loading…
Cancel
Save