PHPackages                             xpocketmp/bedrock-protocol - 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. xpocketmp/bedrock-protocol

ActiveLibrary

xpocketmp/bedrock-protocol
==========================

An implementation of the Minecraft: Bedrock Edition protocol in PHP

58.0.1+bedrock-1.26.30(2w ago)079↑2634.2%LGPL-3.0PHP ^8.1

Since Aug 23Compare

[ Source](https://github.com/ClousClouds/BedrockProtocol)[ Packagist](https://packagist.org/packages/xpocketmp/bedrock-protocol)[ RSS](/packages/xpocketmp-bedrock-protocol/feed)WikiDiscussions Synced today

READMEChangelogDependencies (9)Versions (112)Used By (0)

BedrockProtocol
===============

[](#bedrockprotocol)

[![CI](https://github.com/pmmp/BedrockProtocol/actions/workflows/ci.yml/badge.svg)](https://github.com/pmmp/BedrockProtocol/actions/workflows/ci.yml)

An implementation of the Minecraft: Bedrock Edition protocol in PHP

This library implements all of the packets in the Minecraft: Bedrock Edition protocol, as well as a few extra things needed to support them. However, at the time of writing, it does *not* include the following:

- Anything related to JWT handling/verification
- Anything related to encryption
- Anything related to compression

Decoding packets
----------------

[](#decoding-packets)

Assuming you've decrypted and decompressed a Minecraft packet successfully, you're next going to want to decode it. With this library, that's currently done using `PacketBatch`, like so:

```
use pocketmine\network\mcpe\protocol\serializer\PacketBatch;
use pocketmine\network\mcpe\protocol\PacketPool;
use pmmp\encoding\ByteBufferReader;

foreach(PacketBatch::decodePackets(new ByteBufferReader($payload), PacketPool::getInstance()) as $packetObject){
    var_dump($packetObject); //tada
}
```

Encoding packets
----------------

[](#encoding-packets)

This is easy:

```
use pocketmine\network\mcpe\protocol\serializer\PacketBatch;
use pmmp\encoding\ByteBufferWriter;

/** @var Packet[] $packets */
$stream = new ByteBufferWriter();
PacketBatch::encodePackets($stream, $packets);
$batchPayload = $stream->getData();
```

Footnotes
---------

[](#footnotes)

This library is a little rough around the edges, since it's only ever been intended for PocketMine-MP usage. It's only recently that this mess has been separated from the core to allow it to be used by other things. This means that API changes might be in order, and your feedback would be nice to drive them. If you want to improve BedrockProtocol, please open issues with suggestions, or better, make pull requests.

###  Health Score

52

—

FairBetter than 96% of packages

Maintenance97

Actively maintained with recent releases

Popularity13

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity77

Established project with proven stability

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 ~16 days

Recently: every ~23 days

Total

110

Last Release

15d ago

Major Versions

53.2.0+bedrock-1.21.124 → 54.0.0+bedrock-1.21.1302025-12-16

54.0.0+bedrock-1.21.130 → 55.0.0+bedrock-1.26.02026-02-15

55.0.0+bedrock-1.26.0 → 56.0.0+bedrock-1.26.102026-03-25

56.1.0+bedrock-1.26.10 → 57.0.0+bedrock-1.26.202026-05-09

57.1.0+bedrock-1.26.20 → 58.0.0+bedrock-1.26.302026-06-22

PHP version history (3 changes)1.0.0+bedrock-1.17.10PHP ^7.4 || ^8.0

3.0.0+bedrock-1.17.40PHP ^8.0

24.0.0+bedrock-1.20.30PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/a03f5f66a8cb8e18542d26e54c4fd020a60231f869a4f6c101d9783ac66da546?d=identicon)[NubledStudio](/maintainers/NubledStudio)

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/xpocketmp-bedrock-protocol/health.svg)

```
[![Health](https://phpackages.com/badges/xpocketmp-bedrock-protocol/health.svg)](https://phpackages.com/packages/xpocketmp-bedrock-protocol)
```

###  Alternatives

[pocketmine/pocketmine-mp

A server software for Minecraft: Bedrock Edition written in PHP

3.5k78.3k91](/packages/pocketmine-pocketmine-mp)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k18](/packages/pocketmine-bedrock-protocol)[leantime/leantime

Open source project management system for non-project managers. Simple like Trello, powerful like Jira. Built with neurodiversity in mind.

10.2k4.0k](/packages/leantime-leantime)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M592](/packages/shopware-core)[saithink/saiadmin

webman plugin

28211.6k1](/packages/saithink-saiadmin)[markocupic/calendar-event-booking-bundle

Contao Calendar Event Booking Bundle

135.2k1](/packages/markocupic-calendar-event-booking-bundle)

PHPackages © 2026

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