PHPackages                             xety/laravel-rcon - 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. xety/laravel-rcon

ActiveLibrary[Framework](/categories/framework)

xety/laravel-rcon
=================

Source RCON Protocol Service Provider for Laravel

v1.0.3(5y ago)111MITPHP

Since Sep 8Pushed 5y agoCompare

[ Source](https://github.com/Xety/laravel-rcon)[ Packagist](https://packagist.org/packages/xety/laravel-rcon)[ RSS](/packages/xety-laravel-rcon/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)Dependencies (3)Versions (5)Used By (0)

Source RCON Protocol Service Provider for Laravel
=================================================

[](#source-rcon-protocol-service-provider-for-laravel)

This package is developed to provide Laravel Framework service allowing you to work with source RCON protocol. You can read more protocol specification on this page: [https://developer.valvesoftware.com/wiki/Source\_RCON\_Protocol](https://developer.valvesoftware.com/wiki/Source_RCON_Protocol)

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

[](#installation)

1. Install composer package using command:

```
composer require lukasz-adamski/laravel-rcon

```

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

```
Adams\Rcon\RconServiceProvider::class,
```

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

```
'Rcon' => Adams\Rcon\Facades\Facade::class,
```

4. Publish configuration file to your project:

```
php artisan vendor:publish --provider="Adams\Rcon\RconServiceProvider"
```

Environment
-----------

[](#environment)

You can setup environment variables to establish default RCON connection.

- `RCON_CONNECTION` - default RCON connection name stored in `config/rcon.php`,
- `RCON_HOST` - RCON server hostname,
- `RCON_PORT` - RCON server listening port,
- `RCON_PASSWORD` - passphrase used to authorize connection, you can use `null` to skip authorization,
- `RCON_TIMEOUT` - RCON server connection timeout.

Testing
-------

[](#testing)

To run predefined test set use:

```
php vendor/bin/phpunit
```

Usage
-----

[](#usage)

Below you have example controller implementation:

```
