PHPackages                             xpocketmc/bedrockprotocol - 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. xpocketmc/bedrockprotocol

ActiveLibrary

xpocketmc/bedrockprotocol
=========================

An implementation of the Minecraft: Bedrock Edition protocol in PHP

1.0.0+1.21.30(1y ago)03.7kLGPL-3.0PHPPHP ^8.1

Since Sep 18Pushed 1y agoCompare

[ Source](https://github.com/xpocketmc/BedrockProtocol-Minecraft)[ Packagist](https://packagist.org/packages/xpocketmc/bedrockprotocol)[ RSS](/packages/xpocketmc-bedrockprotocol/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (9)Versions (3)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:

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

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

[](#encoding-packets)

This is easy:

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

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

31

—

LowBetter than 68% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

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

Unknown

Total

1

Last Release

607d ago

### Community

Maintainers

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

---

Top Contributors

[![dktapps](https://avatars.githubusercontent.com/u/14214667?v=4)](https://github.com/dktapps "dktapps (484 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (69 commits)")[![IvanCraft623](https://avatars.githubusercontent.com/u/57236932?v=4)](https://github.com/IvanCraft623 "IvanCraft623 (5 commits)")[![dries-c](https://avatars.githubusercontent.com/u/15795262?v=4)](https://github.com/dries-c "dries-c (5 commits)")[![alvin0319](https://avatars.githubusercontent.com/u/32565818?v=4)](https://github.com/alvin0319 "alvin0319 (4 commits)")[![ambiennt](https://avatars.githubusercontent.com/u/63216972?v=4)](https://github.com/ambiennt "ambiennt (3 commits)")[![inxomnyaa](https://avatars.githubusercontent.com/u/8733998?v=4)](https://github.com/inxomnyaa "inxomnyaa (2 commits)")[![ClousCloud](https://avatars.githubusercontent.com/u/171436201?v=4)](https://github.com/ClousCloud "ClousCloud (2 commits)")[![HashimTheArab](https://avatars.githubusercontent.com/u/13991048?v=4)](https://github.com/HashimTheArab "HashimTheArab (2 commits)")[![leolee3914](https://avatars.githubusercontent.com/u/15855635?v=4)](https://github.com/leolee3914 "leolee3914 (2 commits)")[![TobiasGrether](https://avatars.githubusercontent.com/u/39413320?v=4)](https://github.com/TobiasGrether "TobiasGrether (2 commits)")[![Gewinum](https://avatars.githubusercontent.com/u/78866820?v=4)](https://github.com/Gewinum "Gewinum (1 commits)")[![TheDataLioness](https://avatars.githubusercontent.com/u/34657342?v=4)](https://github.com/TheDataLioness "TheDataLioness (1 commits)")[![Bqleine](https://avatars.githubusercontent.com/u/51089082?v=4)](https://github.com/Bqleine "Bqleine (1 commits)")[![ipad54](https://avatars.githubusercontent.com/u/63200545?v=4)](https://github.com/ipad54 "ipad54 (1 commits)")[![ismaileke](https://avatars.githubusercontent.com/u/74091824?v=4)](https://github.com/ismaileke "ismaileke (1 commits)")[![Azvyl](https://avatars.githubusercontent.com/u/67502532?v=4)](https://github.com/Azvyl "Azvyl (1 commits)")[![JavierLeon9966](https://avatars.githubusercontent.com/u/58715544?v=4)](https://github.com/JavierLeon9966 "JavierLeon9966 (1 commits)")[![kaxyum](https://avatars.githubusercontent.com/u/98211455?v=4)](https://github.com/kaxyum "kaxyum (1 commits)")[![yuyaprgrm](https://avatars.githubusercontent.com/u/17157879?v=4)](https://github.com/yuyaprgrm "yuyaprgrm (1 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/xpocketmc-bedrockprotocol/health.svg)

```
[![Health](https://phpackages.com/badges/xpocketmc-bedrockprotocol/health.svg)](https://phpackages.com/packages/xpocketmc-bedrockprotocol)
```

###  Alternatives

[pocketmine/pocketmine-mp

A server software for Minecraft: Bedrock Edition written in PHP

3.5k74.6k86](/packages/pocketmine-pocketmine-mp)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

169425.2k8](/packages/pocketmine-bedrock-protocol)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[temporal/sdk

Temporal SDK

4002.2M18](/packages/temporal-sdk)[sassnowski/venture

A package to manage complex workflows built on top of Laravel's queue.

825254.5k1](/packages/sassnowski-venture)[vonage/jwt

A standalone package for creating JWTs for Vonage APIs

424.1M4](/packages/vonage-jwt)

PHPackages © 2026

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