Download the PHP package dsg/squad-rcon-php without Composer

On this page you can find all versions of the php package dsg/squad-rcon-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package squad-rcon-php

Squad RCON PHP Logo

Squad RCON PHP

RCON PHP wrapper for Squad server management


Deutsche Squad Gemeinschaft Deutsche Squad Gemeinschaft Total Downloads Latest Stable Version Latest Unstable Version License
Deutsche Squad Gemeinschaft Discord

Join the Squad RCON Community

If you have any questions or need help with getting started with RCON in OWI games you should make sure to join the Squad RCON Community on Discord.

Installation

You can install this package by using composer and the following command:

The code will then be available under the DSG\SquadRCON namespace.

Commands

USAGE

Create an instance

Instanciate the SquadServer class to open a new RCON connection. This will throw an Exception if no connection can be made.

Get current server population (Teams, Squads, Players)

Get the current population. This does use ListPlayers & ListSquads to get the Teams, Squads and Players properly ordered.

ListPlayers

Get the current Player list using the ListPlayers command. This does not include disconnected players.

Get disconnected Players

Get disconnected players using the ListPlayers command.

ListSquads

Get currently active squads (and teams)

AdminKick

Kick a player by name, SteamId or ingame id.

AdminBan

Ban a player by name, SteamId or ingame id.

Get the current map

Get the current map using the ShowNextMap command

Get the next map

Get the next map using the ShowNextMap command

AdminRestartMatch

Restart the current match

AdminEndMatch

End the current match

AdminBroadcast

Broadcast message to all players on the server

AdminChangeLevel

Change the level ( and pick a random layer on it) and travel to it immediately

AdminSetNextLevel

Set the next Level ( and pick a random layer on it) to travel to after this match ends

AdminChangeLayer

Change the layer and travel to it immediately

AdminSetNextLayer

Set the next layer to travel to after this match ends

AdminSetMaxNumPlayers

Set the maximum amount of players / slots

AdminSetServerPassword

Set the server password

AdminSlomo

Sets the game speed with the AdminSlomo. Default 1.0

AdminForceTeamChange

Forces a player to the opposite team by providing the name or steamid.

AdminForceTeamChangeById

Forces a player to the opposite team by providing the ingame Player id.

AdminDisbandSquad command.

Disbands a Squad by providing the Team id / index & Squad id / index.

AdminRemovePlayerFromSquad

Removes a Player from his Squad by providing the Player name.

AdminRemovePlayerFromSquadById

Removes a player from his Squad by providing the ingame Player id.

AdminWarn

Warns a Player by providing his name / steamid and a message.

AdminWarnById

Warns a Player by id.

Important Note

Make sure to always close the connection manually or trigger a disconnect by destructing the object to preventt blocking the RCON server by using up it'S available connections.

Special Thanks


All versions of squad-rcon-php with dependencies

PHP Build Version
Package Version
Requires ext-json Version *
dsg/php-source-query-class Version 1.1.0
spatie/data-transfer-object Version ^3.8
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package dsg/squad-rcon-php contains the following files

Loading the files please wait ....