You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 14, 2021. It is now read-only.
Copy file name to clipboardexpand all lines: README.md
+30-6
Original file line number
Diff line number
Diff line change
@@ -1,25 +1,49 @@
1
1
# laravel-ts3admin
2
2
[par0noid's ts3admin.class](https://github.com/par0noid/ts3admin.class) integration for Laravel 5.3
3
3
4
+
> **INFO:** This package uses a singleton to access a **single** ts3admin.class-object. So you currently **can't access multiple TeamSpeak-3-Servers**!
5
+
4
6
### Installation
5
-
1.`composer require micky5991/laravel-ts3admin`
6
-
2. Add Service Provider to your `app.php` configuration-file:
7
+
- Add ts3admin.class repository to composer.json
8
+
9
+
> This is only a temporary step and will be removed in the next version
3. Copy configuration to config-folder: `php artisan vendor:publish`
29
+
- Copy configuration to config-folder:
30
+
```bash
31
+
$ php artisan vendor:publish
32
+
```
11
33
12
-
4. Add environmental variables to your `.env`
34
+
- Add environmental variables to your `.env`
13
35
```
14
36
TS_SERVER_HOST=127.0.0.1
15
37
TS_SERVER_PORT=9987
16
-
TS_SERVER_TIMEOUT=1
38
+
TS_SERVER_TIMEOUT=2
17
39
TS_QUERY_PORT=10011
18
40
TS_QUERY_USERNAME=serveradmin
19
41
TS_QUERY_PASSWORD=secretpassword
20
42
```
43
+
### Configuration
44
+
After completing all steps from above you should have a configuration file under: `config/teamspeak.php`. There you can configure some other aspects like the name of the ServerQuery.
21
45
22
-
#####Example
46
+
### Example
23
47
An example for a controller to the `/clients` endpoint that lists all connected clients.
0 commit comments