PHPackages                             freedomcore/trinitycore-console - 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. freedomcore/trinitycore-console

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

freedomcore/trinitycore-console
===============================

TrinityCore Console Library

v1.0.5(8y ago)6338MITPHPPHP &gt;=7.0

Since Dec 25Pushed 8y ago4 watchersCompare

[ Source](https://github.com/darki73/trinitycore-console)[ Packagist](https://packagist.org/packages/freedomcore/trinitycore-console)[ RSS](/packages/freedomcore-trinitycore-console/feed)WikiDiscussions master Synced yesterday

READMEChangelog (6)Dependencies (6)Versions (7)Used By (0)

TrinityCore SOAP Console for PHP
--------------------------------

[](#trinitycore-soap-console-for-php)

[![Latest Version on Packagist](https://camo.githubusercontent.com/c141f40a0f1479c86a97cd6db3b9e3a976475f2ee6295bb4b0e7b1ea66ed0bd8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f66726565646f6d636f72652f7472696e697479636f72652d636f6e736f6c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/freedomcore/trinitycore-console)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/f4c114a85c4d24cc382a0be72c7266fd5655e0b80bea476d0775614be898a979/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6461726b6937332f7472696e697479636f72652d636f6e736f6c652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/darki73/trinitycore-console)[![Code Quality](https://camo.githubusercontent.com/dd46754cf39cc921fc88b517c5ba7e1afdc794f94f30e54323fb3ae8308eaded/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6461726b6937332f7472696e697479636f72652d636f6e736f6c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/darki73/trinitycore-console/code-structure)[![Code Coverage](https://camo.githubusercontent.com/0bb1552fc1e5552106781c8941e12014eb9ed58b816ab8a0aaa940167c7a217a/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6461726b6937332f7472696e697479636f72652d636f6e736f6c652f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/darki73/trinitycore-console/?branch=master)[![StyleCI](https://camo.githubusercontent.com/d30c56b711ad2c02042e661cab2d3bd9a94fc05ff06cb9aeaa1bd85923f4eb45/68747470733a2f2f7374796c6563692e696f2f7265706f732f3131353330363731342f736869656c643f6272616e63683d6d6173746572)](%5Blink-styleci%5D)[![Total Downloads](https://camo.githubusercontent.com/1be6177b25f0ccfb296dd9ba21b21345fa05d5684e96b93a8b6a1d7f05bb87ee/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f66726565646f6d636f72652f7472696e697479636f72652d636f6e736f6c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/freedomcore/trinitycore-console)

### Creating SOAP account

[](#creating-soap-account)

In order to be able to use library, you have to create a dedicated **SOAP** account first.
To do so, execute the following command in your worldserver console
`accont create 2#1 accountPassword`
where:

1. **2#1** - account ID, can be anything, but i suggest to use the next ***available*** id for the account
2. **accountPassword** - a secure password for your **SOAP** account

After it is done, we need to grant privileges to the account, this can be done by using the following command
`account set gmlevel 2#1 3 -1`

### Initializing connection to the SOAP service

[](#initializing-connection-to-the-soap-service)

After **SOAP** account is created, we can proceed to the connection initialization for the library
`$console = new \FreedomCore\TrinityCore\Console\Client('2#1', 'accountPassword');`
That is it. Now you can use the library!

### Available Methods

[](#available-methods)

Current implementation of the console client has the following ***'endpoints'***:

1. **[account()](#console-account)** - Allows you to perform various operations on specific account
2. **[bnet()](#console-bnet)** - Allows you to manage related battle.net settings
3. **[character()](#console-character)** - Allows you to perform various operations on specific settings
4. **[gm()](#console-gm)** - Allows you to 'talk' to GMs
5. **[guild()](#console-guild)** - Allows you to manage different guild specific settings
6. **[lfg()](#console-lfg)** - Provides information about the LFG system
7. **[reset()](#console-reset)** - Allows you to reset different aspects of the character (or, all characters on the server)
8. **[server()](#console-server)** - Allows you to manage different server related settings
9. **[send()](#console-send)** - Allows you to send in-game mail

#### Client Options

[](#client-options)

- **setAddress** - Set Server Address
    `$console->setAddress(string $serverAddress);`
- **getAddress** - Get Server Address
    `$console->getAddress();`
- **setPort** - Set Server Port
    `$console->setPort(int $serverPort);`
- **getPort** - Get Server Port
    `$console->getPort();`
- **getVersion** - Get Client Version
    `$console->getVersion();`
- **createConnection** - Initialize Connection To The Server (needs to be invoked if address/port has been changed)
    `$console->createConnection();`
- **getClient** - Get Client Instance
    `$console->getClient();`

#### $console-&gt;account()

[](#console-account)

- **create()** - Create new account
    `$result = $console->account()->create(string $account, string $password);`
- **delete()** - Delete specified account
    `$result = $console->account()->delete(string $account);`
- **password()** - Set new password for the account
    `$result = $console->account()->password(string $oldPassword, string $newPassword, string $repeatPassword);`
- **setAddon()** - Set expansion version for specified account
    `$result = $console->account()->setAddon(string $account, int $addon);`
- **setGmLevel()** - Set Game Mater Level For Account
    `$result = $console->account()->setGmLevel(string $account, int $level, int $realm = -1);`
- **setSecRegmail()** - Sets the regmail for specified account
    `$result = $console->account()->setSecRegmail(string $account, string $regMail, string $repeatRegMail);`
- **setSecEmail()** - Set the email for specified account
    `$result = $console->account()->setSecEmail(string $account, string $email, string $repeatEmail);`
- **setPassword()** - Set password for account.
    `$result = $console->account()->setPassword(string $oldPassword, string $newPassword, string $repeatPassword);`

#### $console-&gt;bnet()

[](#console-bnet)

- **create** - Create new battle.net account
    `$result = $console->bnet()->create(string $email, string $password);`
- **gameAccountCreate** - Create game account for specified battle.net account
    `$result = $console->bnet()->gameAccountCreate(string $email);`
- **link** - Link existing game account with battle.net account
    `$result = $console->bnet()->link(string $email, string $login);`
- **unlink** - Unlink existing account from specified battle.net account
    `$result = $console->bnet()->unlink(string $account, string $password);`
- **listGameAccounts** - List game account on specified battle.net account
    `$result = $console->bnet()->listGameAccounts(string $email);`
- **setPassword** - Set new password for specified battle.net account
    `$result = $console->bnet()->setPassword(string $email, string $password, string $repeatPassword);`

#### $console-&gt;character()

[](#console-character)

- **unstuck** - Teleport specified player to specified location
    `$result = $console->character()->unstuck(string $playerName, string $location = 'graveyard');`
- **unmute** - Restore messaging functionality for specified character
    `$result = $console->character()->unmute(string $playerName);`
- **unban** - Unban character by name
    `$result = $console->character()->unban(string $playerName, $function = 'character');`
- **ban** - Ban specified character
    `$result = $console->character()->ban(string $playerName, $function = 'character');`
- **mute** - Disable characters messaging functionality
    `$result = $console->character()->mute(string $playerName, int $minutes, $reason = 'No reason given!');`
- **kick** - Kick player from game world
    `$result = $console->character()->kick(string $playerName, string $reason = 'No reason given!');`
- **customize** - Send "customise character" request on next login
    `$result = $console->character()->customize(string $playerName);`
- **changeFaction** - Send "change faction" request on next login
    `$result = $console->character()->changeFaction(string $playerName);`
- **changeRace** - Send "change race" request on next login
    `$result = $console->character()->changeRace(string $playerName);`
- **erase** - Completely delete character
    `$result = $console->character()->erase(string $playerName);`
- **level** - Increase/Decrease character level by the provided value
    `$result = $console->character()->level(string $playerName, int $level = 1);`
- **rename** - Send "change name" request on next login. IF $newName is provided, name will be forcefully changed
    `$result = $console->character()->rename(string $oldName, string $newName = '');`
- **reputation** - Show reputation information for selected character. Player MUST be online
    `$result = $console->character()->reputation(string $playerName);`
- **titles** - Show titles known by character. Player MUST be online
    `$result = $console->character()->titles(string $playerName);`
- **deletedDelete** - Delete characters which contain specified string in their name
    `$result = $console->character()->deletedDelete(string $playerName);`
- **deletedList** - Show deleted characters with specified string in their names
    `$result = $console->character()->deletedList(string $playerName);`
- **deletedRestore** - Restore deleted characters with specified string in their names
    `$result = $console->character()->deletedRestore(string $playerName);`
- **deletedOld** - Delete characters which was deleted more than $days ago
    `$result = $console->character()->deletedOld(string $playerName, int $days);`

#### $console-&gt;gm()

[](#console-gm)

- **announce** - Send announcement to all Game Masters
    `$result = $console->gm()->announce(string $announcement);`
- **nameAnnounce** - Send announcement to all Game Masters (as console)
    `$result = $console->gm()->nameAnnounce(string $announcement);`
- **notify** - Send notification ot all Game Masters
    `$result = $console->gm()->notify(string $notification);`

#### $console-&gt;guild()

[](#console-guild)

- **create** - Create new guild. Player MUST be online
    `$result = $console->guild()->create(string $leaderName, string $guildName);`
- **delete** - Delete specified guild
    `$result = $console->guild()->delete(string $guildName);`
- **invite** - Invite Specified Player To Specified Guild
    `$result = $console->guild()->invite(string $playerName, string $guildName);`
- **rename** - Rename Guild
    `$result = $console->guild()->rename(string $oldName, string $newName);`
- **info** - Get Information About Specified Guild
    `$result = $console->guild()->info(string $guildName);`

#### $console-&gt;lfg()

[](#console-lfg)

- **queue** - Show information about current LFG queues
    `$result = $console->lfg()->queue();`
- **clean** - Cleans current queue, only for DEBUG
    `$result = $console->lfg()->clean();`
- **options** - Shows current LFG options. IF value is set, updates existing value.
    `$result = $console->lfg()->options($value = '');`

#### $console-&gt;reset()

[](#console-reset)

- **achievements** - Reset achievements for specified player
    `$result = $console->reset()->achievements(string $playerName);`
- **honor** - Reset honor for specified player
    `$result = $console->reset()->honor(string $playerName);`
- **level** - Reset level for specified player
    `$result = $console->reset()->level(string $playerName);`
- **spells** - Reset spells for specified player
    `$result = $console->reset()->spells(string $playerName);`
- **stats** - Reset stats for specified player
    `$result = $console->reset()->stats(string $playerName);`
- **talents** - Reset talents for specified player
    `$result = $console->reset()->talents(string $playerName);`
- **all** - Reset $type (talents/spells) for ALL players
    `$result = $console->reset()->all(string $type);`

### $console-&gt;send()

[](#console-send)

- **items** - Send Items To The Player *(This method require you to also import freedomcore/trinitycore-support library)*
    `$console->send()->items(string $playerName, string $mailSubject, string $mailText, Items $items);`
- **mail** - Send mail to the player
    `$console->send()->mail(string $playerName, string $mailSubject, string $mailText);`
- **message** - Send message to the player which will appear in the middle of the screen
    `$console->send()->message(string $playerName, string $message);`
- **money** - Send money to the player
    `$console->send()->money(string $playerName, string $mailSubject, string $mailText, int $amount);`

#### $console-&gt;server()

[](#console-server)

- **corpses** - Trigger corpses expire check in world
    `$result = $console->server()->corpses();`
- **exit** - Terminate server NOW. Exit code 0
    `$result = $console->server()->exit();`
- **info** - Display server version and the number of connected players
    `$result = $console->server()->info();`
- **motd** - Show message of the day
    `$result = $console->server()->motd();`
- **plimit** - Without the argument passed, it will display current limit for players. With argument greater that 0, it will set the new limit for max players. 'reset' parameter may be used to set the value from config.
    `$result = $console->server()->plimit($parameter = '');`
- **setDiffTime** - Set Diff Time For Sever
    `$result = $console->server()->setDiffTime(int $diffTime);`
- **setLogLevel** - Set Log Level For Server
    `$result = $console->server()->setLogLevel(string $facility, string $name, int $logLevel);`
- **setMotd** - Set new message of the day
    `$result = $console->server()->setMotd(string $motd);`
- **setClosed** - Sets whether the world accepts new client connections
    `$result = $console->server()->setClosed(bool $isClosed);`
- **shutdown** - Shutdown server
    `$result = $console->server()->shutdown(int $timer, bool $force = false, int $code = 0);`
- **shutdownCancel** - Cancel the restart/shutdown timer if any
    `$result = $console->server()->shutdownCancel();`
- **saveAll** - Save all players.
    `$result = $console->server()->saveAll();`
- **notify** - Display a message to all online players
    `$result = $console->server()->notify(string $message);`
- **announce** - Send announcement
    `$result = $console->server()->announce(string $message);`

### P.S.

[](#ps)

If you found any errors, or would like to suggest some 'extra' functionality, feel free to create a new [ISSUE](https://github.com/darki73/trinitycore-console/issues/new).

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~2 days

Total

6

Last Release

3100d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/59848fdf0747788942e0c30e483a8eccb4698e0c34db490db565b6a18992442d?d=identicon)[darki73](/maintainers/darki73)

---

Top Contributors

[![darki73](https://avatars.githubusercontent.com/u/1318627?v=4)](https://github.com/darki73 "darki73 (1 commits)")

---

Tags

consoletrinitycorefreedomcorelibarary

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/freedomcore-trinitycore-console/health.svg)

```
[![Health](https://phpackages.com/badges/freedomcore-trinitycore-console/health.svg)](https://phpackages.com/packages/freedomcore-trinitycore-console)
```

###  Alternatives

[symfony/console

Eases the creation of beautiful and testable command line interfaces

9.8k1.1B13.3k](/packages/symfony-console)[psy/psysh

An interactive shell for modern PHP.

9.8k569.8M787](/packages/psy-psysh)[nunomaduro/collision

Cli error handling for console/command-line PHP applications.

4.7k348.7M10.5k](/packages/nunomaduro-collision)[nunomaduro/termwind

It's like Tailwind CSS, but for the console.

2.5k260.6M360](/packages/nunomaduro-termwind)[wp-cli/php-cli-tools

Console utilities for PHP

68327.0M374](/packages/wp-cli-php-cli-tools)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
