Browse Source

switch to composer for ts3phpframework dependency management

master
lub 10 months ago
parent
commit
dcbe8d8297
6 changed files with 18 additions and 9 deletions
  1. +0
    -3
      .gitmodules
  2. +12
    -2
      Dockerfile
  3. +5
    -0
      composer.json
  4. +0
    -2
      config.inc.php.dist
  5. +1
    -1
      main.php
  6. +0
    -1
      ts3phpframework

+ 0
- 3
.gitmodules View File

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

+ 12
- 2
Dockerfile View File

@@ -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"]

+ 5
- 0
composer.json View File

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

+ 0
- 2
config.inc.php.dist View File

@@ -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
- 1
main.php View File

@@ -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);



+ 0
- 1
ts3phpframework

@@ -1 +0,0 @@
Subproject commit 3b7a20e68bc556981f9a41782adb9933394605a9

Loading…
Cancel
Save