PHPackages                             dev-lancer/mc-pack - 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. [CLI &amp; Console](/categories/cli)
4. /
5. dev-lancer/mc-pack

ActiveLibrary[CLI &amp; Console](/categories/cli)

dev-lancer/mc-pack
==================

The library is designed to integrate the minecraft server with the website.

v2.2.2(1y ago)31.4kMITPHPPHP &gt;=7.4

Since Jul 14Pushed 1y ago1 watchersCompare

[ Source](https://github.com/jgniecki/MCPack)[ Packagist](https://packagist.org/packages/dev-lancer/mc-pack)[ RSS](/packages/dev-lancer-mc-pack/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (10)Versions (24)Used By (0)

PHP MCPack [![Packagist](https://camo.githubusercontent.com/347ee7cb58b266ef5901cf439e5d8d6a5cd77664f5b9e29123dbe36f7613b602/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6465762d6c616e6365722f6d632d7061636b2e737667)](https://packagist.org/packages/dev-lancer/mc-pack)
======================================================================================================================================================================================================================================================================================================

[](#php-mcpack-)

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

[](#installation)

This library can installed by issuing the following command:

```
composer require dev-lancer/mc-pack
```

### Query

[](#query)

This method uses GameSpy4 protocol, and requires enabling `query` listener in your `server.properties` like this:

> *enable-query=true*
> *query.port=25565*

### Rcon

[](#rcon)

This method allows you to send commands, it is used in item shop, and requires enabling `rcon` listener in your `server.properties` like this:

> *enable-rcon=true*
> *rcon.port=25575*
> *rcon.password=pass*

Example
-------

[](#example)

### Query &amp; Rcon

[](#query--rcon)

It enables downloading basic server information and sending commands.

```
