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

Commit

Permalink
Updated README and composer dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Micky5991 committed Feb 7, 2017
1 parent 2e23ca7 commit ac32d3e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 26 deletions.
22 changes: 2 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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";
}
});

```
6 changes: 0 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,6 @@
"Micky5991\\laravel_ts3admin\\": "src"
}
},
"repositories": [
{
"type": "git",
"url": "https://github.com/par0noid/ts3admin.class"
}
],
"authors": [
{
"name": "Francesco Paolocci",
Expand Down

0 comments on commit ac32d3e

Please sign in to comment.