Download the PHP package reinfyteam/libvapm-pmmp without Composer
On this page you can find all versions of the php package reinfyteam/libvapm-pmmp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package libvapm-pmmp
LibVapmPMMP
Async/Promise/Coroutine/Thread utilities for PocketMine-MP (virion-ready).
Requirements
- PMMP API:
5.36.0or a compatible API 5 server - PHP:
8.2or newer
Installation
Composer
Virion
- Download from Poggit: https://poggit.pmmp.io/ci/ReinfyTeam/LibVapmPMMP
- Place the virion in your project virions folder.
Quick setup
Initialize once in your plugin:
VapmPMMP::init() registers the repeating event-loop tick task.
Calling it more than once (or with a different plugin instance) is guarded and will emit a warning.
Recommended imports
Usage
1) Async + await (Io facade)
2) Delay / timers
3) Coroutines (Ct facade)
4) Promise composition
Also available: Promise::allSettled(), Promise::any(), Promise::race().
5) HTTP/file helpers (System)
Quick-start recipes
Timeout + fallback
Repeating interval with stop
Parallel awaits
Fetch with explicit timeout
High-volume queue and backpressure notes
- Promise queue de-duplicates enqueues by Promise ID.
- Scheduler fairness is backlog-aware across Promise, coroutine, microtask, and macrotask queues.
- Use the included stress scripts to compare queue and mixed-scheduler workloads.
Scheduler diagnostics
The repository does not expose a metrics snapshot API. Use the included stress scripts for repeatable queue and mixed-scheduler measurements.
Static analysis gates:
PocketMine-MP API 5 compatibility notes
VapmPMMP::init()is designed for API 5 tick scheduling (scheduleRepeatingTask(..., 1)).- In PMMP-managed mode, system-level tick/shutdown hooks are not auto-registered; PMMP scheduler drives the loop.
- In non-PMMP contexts, runtime hooks are attempted; if unavailable, LibVapmPMMP emits warnings and expects manual loop runs.
Compatibility check script:
Stress scripts and benchmark comparison notes
Run deterministic stress workloads:
For before/after comparisons, run both workloads from each revision:
Capture and compare the reported job counts, sums, timer hits, and coroutine hits.
For optimization roadmap and upcoming improvements, see the repository issue tracker.
Notes for high-throughput workloads
- Keep long operations async/coroutine-based.
- Prefer batching and composition (
Promise::all, channels, await groups) over deep nested callbacks.