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

ActiveLibrary

nethergamesmc/bedrock-protocol
==============================

An implementation of the Minecraft: Bedrock Edition protocol in PHP

123.3k—9.1%31[2 PRs](https://github.com/NetherGamesMC/BedrockProtocol/pulls)1PHPCI passing

Since Mar 25Pushed 1mo ago2 watchersCompare

[ Source](https://github.com/NetherGamesMC/BedrockProtocol)[ Packagist](https://packagist.org/packages/nethergamesmc/bedrock-protocol)[ RSS](/packages/nethergamesmc-bedrock-protocol/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (5)Used By (1)

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

39

—

LowBetter than 86% of packages

Maintenance60

Regular maintenance activity

Popularity32

Limited adoption so far

Community30

Small or concentrated contributor base

Maturity32

Early-stage or recently created project

 Bus Factor1

Top contributor holds 55% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/1dc7e298e7b0ae1fe3cf1ef281e589e988ed5ff452504193293545018f3bf54f?d=identicon)[larryTheCoder](/maintainers/larryTheCoder)

---

Top Contributors

[![dktapps](https://avatars.githubusercontent.com/u/14214667?v=4)](https://github.com/dktapps "dktapps (519 commits)")[![dries-c](https://avatars.githubusercontent.com/u/15795262?v=4)](https://github.com/dries-c "dries-c (302 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (71 commits)")[![IvanCraft623](https://avatars.githubusercontent.com/u/57236932?v=4)](https://github.com/IvanCraft623 "IvanCraft623 (7 commits)")[![alvin0319](https://avatars.githubusercontent.com/u/32565818?v=4)](https://github.com/alvin0319 "alvin0319 (4 commits)")[![Zedstar16](https://avatars.githubusercontent.com/u/35542555?v=4)](https://github.com/Zedstar16 "Zedstar16 (4 commits)")[![Flonja](https://avatars.githubusercontent.com/u/20887403?v=4)](https://github.com/Flonja "Flonja (3 commits)")[![ambiennt](https://avatars.githubusercontent.com/u/63216972?v=4)](https://github.com/ambiennt "ambiennt (3 commits)")[![BrandPVP](https://avatars.githubusercontent.com/u/114182697?v=4)](https://github.com/BrandPVP "BrandPVP (2 commits)")[![HashimTheArab](https://avatars.githubusercontent.com/u/13991048?v=4)](https://github.com/HashimTheArab "HashimTheArab (2 commits)")[![inxomnyaa](https://avatars.githubusercontent.com/u/8733998?v=4)](https://github.com/inxomnyaa "inxomnyaa (2 commits)")[![ismaileke](https://avatars.githubusercontent.com/u/74091824?v=4)](https://github.com/ismaileke "ismaileke (2 commits)")[![leolee3914](https://avatars.githubusercontent.com/u/15855635?v=4)](https://github.com/leolee3914 "leolee3914 (2 commits)")[![Superomarking](https://avatars.githubusercontent.com/u/71559522?v=4)](https://github.com/Superomarking "Superomarking (2 commits)")[![TobiasGrether](https://avatars.githubusercontent.com/u/39413320?v=4)](https://github.com/TobiasGrether "TobiasGrether (2 commits)")[![xRookieFight](https://avatars.githubusercontent.com/u/50714128?v=4)](https://github.com/xRookieFight "xRookieFight (2 commits)")[![kaxyum](https://avatars.githubusercontent.com/u/98211455?v=4)](https://github.com/kaxyum "kaxyum (1 commits)")[![kostamax27](https://avatars.githubusercontent.com/u/69608272?v=4)](https://github.com/kostamax27 "kostamax27 (1 commits)")[![yuyaprgrm](https://avatars.githubusercontent.com/u/17157879?v=4)](https://github.com/yuyaprgrm "yuyaprgrm (1 commits)")[![mintylevel](https://avatars.githubusercontent.com/u/190885592?v=4)](https://github.com/mintylevel "mintylevel (1 commits)")

### Embed Badge

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

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

PHPackages © 2026

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