Skip to content
This repository was archived by the owner on Feb 14, 2021. It is now read-only.

Commit ac32d3e

Browse files
committedFeb 7, 2017
Updated README and composer dependencies
1 parent 2e23ca7 commit ac32d3e

File tree

2 files changed

+2
-26
lines changed

2 files changed

+2
-26
lines changed
 

‎README.md

+2-20
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,6 @@
44
> **INFO:** This package uses a singleton to access a **single** ts3admin.class-object. So you currently **can't access multiple TeamSpeak-3-Servers**!
55
66
### Installation
7-
- Add ts3admin.class repository to composer.json
8-
9-
> This is only a temporary step and will be removed in the next version
10-
11-
```bash
12-
$ composer config repositories.ts3admin git https://github.com/par0noid/ts3admin.class
13-
```
14-
__or__
15-
```
16-
"repositories": [
17-
{
18-
"type": "git",
19-
"url": "https://github.com/par0noid/ts3admin.class"
20-
}
21-
],
22-
```
23-
247
- `composer require micky5991/laravel-ts3admin`
258
- Add Service Provider to your `app.php` configuration-file:
269
```php
@@ -46,14 +29,13 @@ After completing all steps from above you should have a configuration file under
4629
### Example
4730
An example for a controller to the `/clients` endpoint that lists all connected clients.
4831
```php
49-
Route::get('/clients', function(\par0noid\ts3admin\ts3admin $ts) {
32+
Route::get('/users', function(ts3admin $ts) {
5033
$result = $ts->clientList();
5134
if($ts->succeeded($result)) {
5235
$users = $ts->getElement("data", $result);
53-
return $users;
36+
dd($users);
5437
} else {
5538
return "Connection failed";
5639
}
5740
});
58-
5941
```

‎composer.json

-6
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,6 @@
1414
"Micky5991\\laravel_ts3admin\\": "src"
1515
}
1616
},
17-
"repositories": [
18-
{
19-
"type": "git",
20-
"url": "https://github.com/par0noid/ts3admin.class"
21-
}
22-
],
2317
"authors": [
2418
{
2519
"name": "Francesco Paolocci",

0 commit comments

Comments
 (0)
This repository has been archived.