From ac32d3ea76c491bc04dc02e13f08a949633f3254 Mon Sep 17 00:00:00 2001 From: Francesco Paolocci Date: Tue, 7 Feb 2017 13:50:16 +0100 Subject: [PATCH] Updated README and composer dependencies --- README.md | 22 ++-------------------- composer.json | 6 ------ 2 files changed, 2 insertions(+), 26 deletions(-) diff --git a/README.md b/README.md index 150c6b3..f36c121 100644 --- a/README.md +++ b/README.md @@ -4,23 +4,6 @@ > **INFO:** This package uses a singleton to access a **single** ts3admin.class-object. So you currently **can't access multiple TeamSpeak-3-Servers**! ### Installation -- Add ts3admin.class repository to composer.json - -> This is only a temporary step and will be removed in the next version - -```bash -$ composer config repositories.ts3admin git https://github.com/par0noid/ts3admin.class -``` -__or__ -``` - "repositories": [ - { - "type": "git", - "url": "https://github.com/par0noid/ts3admin.class" - } - ], -``` - - `composer require micky5991/laravel-ts3admin` - Add Service Provider to your `app.php` configuration-file: ```php @@ -46,14 +29,13 @@ After completing all steps from above you should have a configuration file under ### Example An example for a controller to the `/clients` endpoint that lists all connected clients. ```php -Route::get('/clients', function(\par0noid\ts3admin\ts3admin $ts) { +Route::get('/users', function(ts3admin $ts) { $result = $ts->clientList(); if($ts->succeeded($result)) { $users = $ts->getElement("data", $result); - return $users; + dd($users); } else { return "Connection failed"; } }); - ``` \ No newline at end of file diff --git a/composer.json b/composer.json index cedbef0..b258c35 100644 --- a/composer.json +++ b/composer.json @@ -14,12 +14,6 @@ "Micky5991\\laravel_ts3admin\\": "src" } }, - "repositories": [ - { - "type": "git", - "url": "https://github.com/par0noid/ts3admin.class" - } - ], "authors": [ { "name": "Francesco Paolocci",