Download the PHP package d3lph1/minecraft-rcon-manager without Composer

On this page you can find all versions of the php package d3lph1/minecraft-rcon-manager. 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 minecraft-rcon-manager

minecraft-rcon-manager

Library for easy interaction with the minecraft server using rcon.

Installation

Execute command:

or add line to require section of composer.json

Usage

Overview

Connecting

First, you need to create an instance of the Connector class. The instance will serve to create a connection to the server, add servers to the pool and remove them from there.

In order to connect directly to the server, use this construction

Where:

You can also add the server to the server pool in order to get the connection instance later:

Ok, now we need the servers in the pool. Now that you need a server in the future, you will pull it out of the pool like this:

Remove server from server pool:

Sending requests

Using the constructs described above, we get an instance of the class D3lph1\MinecraftRconManager\Rcon with which we can finally send requests to our server:

In return we will get something like this: §d[Rcon§d] Yes, it works...

You can get not only the body of the answer but the entire array in which besides the body contains also the service information. Just pass true to the second argument to send().

This array contains element type - the type of request (authorization or command execution) and the request id - required to check the integrity of the response.

Get data from last request:

Disconnect from server:


All versions of minecraft-rcon-manager with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
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 d3lph1/minecraft-rcon-manager contains the following files

Loading the files please wait ....