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

ActiveLibrary

axolotl-pm/bedrock-protocol
===========================

An implementation of the Minecraft: Bedrock Edition protocol in PHP

60.0.0+bedrock-1.26.44(2w ago)53.5k↑37.2%21LGPL-3.0PHPPHP ^8.1CI passing

Since Aug 23Pushed 1w ago1 watchersCompare

[ Source](https://github.com/axolotl-pm/BedrockProtocol)[ Packagist](https://packagist.org/packages/axolotl-pm/bedrock-protocol)[ RSS](/packages/axolotl-pm-bedrock-protocol/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (3)Dependencies (18)Versions (117)Used By (1)

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

[](#bedrockprotocol)

[![CI](https://github.com/axolotl-pm/BedrockProtocol/actions/workflows/ci.yml/badge.svg)](https://github.com/axolotl-pm/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

61

—

FairBetter than 99% of packages

Maintenance97

Actively maintained with recent releases

Popularity31

Limited adoption so far

Community28

Small or concentrated contributor base

Maturity78

Established project with proven stability

 Bus Factor1

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

Every ~16 days

Total

113

Last Release

18d ago

Major Versions

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

58.0.1+bedrock-1.26.30 → 59.0.0+bedrock-1.26.402026-08-07

59.0.1+bedrock-1.26.40 → 60.0.0+bedrock-1.26.442026-08-15

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/18b83e7827ad189c2f92658a88ff151b4acd399fcc1915c87ddd20c896a28b60?d=identicon)[kostamax27](/maintainers/kostamax27)

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

![](https://avatars.githubusercontent.com/u/57236932?v=4)[IvanCraft623](/maintainers/IvanCraft623)[@IvanCraft623](https://github.com/IvanCraft623)

![](https://avatars.githubusercontent.com/u/142091702?v=4)[Vega Nicholas S.](/maintainers/nicholass003)[@nicholass003](https://github.com/nicholass003)

---

Top Contributors

[![dktapps](https://avatars.githubusercontent.com/u/14214667?v=4)](https://github.com/dktapps "dktapps (523 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (70 commits)")[![dries-c](https://avatars.githubusercontent.com/u/15795262?v=4)](https://github.com/dries-c "dries-c (25 commits)")[![IvanCraft623](https://avatars.githubusercontent.com/u/57236932?v=4)](https://github.com/IvanCraft623 "IvanCraft623 (10 commits)")[![alvin0319](https://avatars.githubusercontent.com/u/32565818?v=4)](https://github.com/alvin0319 "alvin0319 (6 commits)")[![ismaileke](https://avatars.githubusercontent.com/u/74091824?v=4)](https://github.com/ismaileke "ismaileke (3 commits)")[![kostamax27](https://avatars.githubusercontent.com/u/69608272?v=4)](https://github.com/kostamax27 "kostamax27 (3 commits)")[![ambiennt](https://avatars.githubusercontent.com/u/63216972?v=4)](https://github.com/ambiennt "ambiennt (3 commits)")[![xRookieFight](https://avatars.githubusercontent.com/u/50714128?v=4)](https://github.com/xRookieFight "xRookieFight (3 commits)")[![Azvyl](https://avatars.githubusercontent.com/u/67502532?v=4)](https://github.com/Azvyl "Azvyl (3 commits)")[![TobiasGrether](https://avatars.githubusercontent.com/u/39413320?v=4)](https://github.com/TobiasGrether "TobiasGrether (2 commits)")[![leolee3914](https://avatars.githubusercontent.com/u/15855635?v=4)](https://github.com/leolee3914 "leolee3914 (2 commits)")[![nicholass003](https://avatars.githubusercontent.com/u/142091702?v=4)](https://github.com/nicholass003 "nicholass003 (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)")[![Superomarking](https://avatars.githubusercontent.com/u/71559522?v=4)](https://github.com/Superomarking "Superomarking (2 commits)")[![samupozzo](https://avatars.githubusercontent.com/u/42522736?v=4)](https://github.com/samupozzo "samupozzo (1 commits)")[![SenseiTarzan](https://avatars.githubusercontent.com/u/32621158?v=4)](https://github.com/SenseiTarzan "SenseiTarzan (1 commits)")[![TheColorDroid](https://avatars.githubusercontent.com/u/199699732?v=4)](https://github.com/TheColorDroid "TheColorDroid (1 commits)")[![Bqleine](https://avatars.githubusercontent.com/u/51089082?v=4)](https://github.com/Bqleine "Bqleine (1 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[laravel/framework

The Laravel Framework.

35.4k569.8M22.1k](/packages/laravel-framework)[laravel/horizon

Dashboard and code-driven configuration for Laravel queues.

4.2k104.7M380](/packages/laravel-horizon)[illuminate/queue

The Illuminate Queue package.

20433.5M2.0k](/packages/illuminate-queue)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

605.9M718](/packages/shopware-core)[markocupic/calendar-event-booking-bundle

Contao Calendar Event Booking Bundle

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

PHPackages © 2026

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