Download the PHP package valres/pmtoolbox without Composer

On this page you can find all versions of the php package valres/pmtoolbox. 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 pmtoolbox

PMToolBox

PMToolBox is a small PocketMine-MP toolbox library. It provides utilities for manager-based plugin structure, task helpers and an optional RCON interface.

Setup

Register the toolbox from your plugin lifecycle:

By default, managers are loaded from the manager directory under your plugin namespace.

If your managers are elsewhere:

If you do not want to use the manager system:

Managers

Create managers by extending BaseManager.

Dependencies

Use ManagerDependsOn when a manager must be initialized after another one.

The resolver detects duplicate manager names, missing dependencies and circular dependencies.

Auto Register

Managers can auto-register commands and listeners from folders next to the manager class.

Expected folder layout:

Access

You can also access the handler directly:

Each manager also behaves like a singleton automatically. You do not need to add a trait in your manager class:

The singleton instance is registered when the manager is discovered and reset when managers are disabled.

RCON

RCON is optional and can be started during enable:

Or with the helper:

Camera

Register the camera helper once during enable. PMToolBox will send the vanilla camera presets when a player finishes initializing.

Then build and send camera instructions fluently:

Sequences are useful when a plugin wants to group multiple instructions:

Data-Driven UI

PMToolBox includes an experimental DDUI helper inspired by Minecraft Bedrock's Data-Driven UI model and Joshet18/Data-DrivenUI. It is registered automatically by ToolboxLoader::enable().

For simple dialogs:

Supported DduiCustomForm controls are labels, spacers, dividers, text fields, toggles, dropdowns, sliders and buttons. DduiObservable values can be updated server-side while the screen is open; client-writable observables are updated when the player changes the matching control.

Packets

PMToolBox includes a small packet API inspired by LibPacket/SimplePacketHandler: register handlers for specific packet classes instead of writing long instanceof chains.

Monitor

Use a monitor when you only want to observe packets. Return values are ignored.

Interceptor

Use an interceptor when you want to cancel or modify packets before normal handling. Return false to cancel the packet event.

Handler Classes

Attributes

You can also register public methods with attributes.


All versions of pmtoolbox with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
ext-sockets Version *
opis/closure Version ^4.4
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 valres/pmtoolbox contains the following files

Loading the files please wait ...