PHPackages                             lukasz-adamski/laravel-teamspeak3 - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. lukasz-adamski/laravel-teamspeak3

ActiveLibrary[Framework](/categories/framework)

lukasz-adamski/laravel-teamspeak3
=================================

Teamspeak 3 PHP Framework Service Provider for Laravel Framework

1.0.4(5y ago)41553[2 PRs](https://github.com/lukasz-adamski/laravel-teamspeak3/pulls)MITPHPPHP &gt;=5.6.4

Since May 31Pushed 3y agoCompare

[ Source](https://github.com/lukasz-adamski/laravel-teamspeak3)[ Packagist](https://packagist.org/packages/lukasz-adamski/laravel-teamspeak3)[ RSS](/packages/lukasz-adamski-laravel-teamspeak3/feed)WikiDiscussions master Synced yesterday

READMEChangelog (5)Dependencies (2)Versions (6)Used By (0)

TeamSpeak 3 Framework Service Provider for Laravel
==================================================

[](#teamspeak-3-framework-service-provider-for-laravel)

This package is developed to provide Laravel Framework service allowing you to execute TeamSpeak 3 ServerQuery commands.

Installation
------------

[](#installation)

1. Install composer package using this command:

```
composer install lukasz-adamski/laravel-teamspeak3

```

2. Insert Service Provider in `config/app.php`:

```
Adams\TeamSpeak3\TeamSpeak3ServiceProvider::class,
```

3. Insert Facade in `config/app.php`:

```
'TeamSpeak3' => Adams\TeamSpeak3\Facades\TeamSpeak3::class,
```

4. Publish configuration file to your project:

```
php artisan vendor:publish --provider="Adams\TeamSpeak3\TeamSpeak3ServiceProvider"

```

5. Open `.env` file and insert these settings:

- `TEAMSPEAK3_HOST` - host used to establish connection with server,
- `TEAMSPEAK3_VOICE_PORT` - voice port (UDP) used to identify virtual server to select,
- `TEAMSPEAK3_QUERY_PORT` - query port (TCP) used to establish connection with ServerQuery,
- `TEAMSPEAK3_USERNAME` - username which will be used to login into ServerQuery,
- `TEAMSPEAK3_PASSWORD` - password which will be used to login into ServerQuery,
- `TEAMSPEAK3_NICKNAME` - nickname to set after successful connection.

Usage
-----

[](#usage)

For example you can use this Service Provider in Controllers:

```
