craft / core
A PHP library for all things Minecraft: Java Edition.
Requires
- php: ^7.1
- ext-curl: *
- ext-gmp: *
- ext-json: *
- ext-mbstring: *
- ext-openssl: *
- ext-sockets: *
- ext-spl: *
- ext-zlib: *
- hell-sh/asyncore: ^2.0
- hell-sh/enum: ^1.1
- hell-sh/hotswapp: ^1.1
- hell-sh/uuid: ^1.2
- phpseclib/mcrypt_compat: ^1.0
Requires (Dev)
- hell-sh/nose: ^1.1
Suggests
- ext-mcrypt: Install the mcrypt extension to speed up "online mode" connections.
- dev-master
- v0.5.25
- v0.5.24
- v0.5.23
- v0.5.22
- v0.5.21
- v0.5.20
- v0.5.19
- v0.5.18
- v0.5.17
- v0.5.16
- v0.5.15
- v0.5.14
- v0.5.13
- v0.5.12
- v0.5.11
- v0.5.10
- v0.5.9
- v0.5.8
- v0.5.7
- v0.5.6
- v0.5.5
- v0.5.4
- v0.5.3
- v0.5.2
- v0.5.1
- v0.5
- v0.5-alpha4
- v0.5-alpha3
- v0.5-alpha2
- v0.5-alpha1
- v0.4.9
- v0.4.8
- v0.4.7
- v0.4.6
- v0.4.5
- v0.4.4
- v0.4.3
- v0.4.2
- v0.4.1
- v0.4
- v0.3.2
- v0.3.1
- v0.3.0
- v0.2.4
- v0.2.3
- v0.2.2
- v0.2.1
- v0.2.0
- v0.1.2
- v0.1.1
- v0.1
This package is auto-updated.
Last update: 2024-10-17 06:16:36 UTC
README
A PHP library for all things Minecraft: Java Edition.
This project has been abandoned! The limited subset of 1.8.x - 1.15.x that has been implemented should work fine. If and how anything after that works is entirely dependant on what changed about the protocol.
Prerequisites
You'll need PHP (CLI), Composer, and Git.
Instructions
- Debian:
apt-get -y install php-cli composer git
- Windows:
- Install Cone, which will install the latest PHP with it.
- Run
cone get composer
as administrator. - Install Git for Windows.
Projects using Phpcraft
- Phpcraft Server
- Phpcraft Client
- Phpcraft Toolbox — CLI tools
- Phpcraft Surrogate — reverse proxy
- mcverify — a REST API for linking your users' Minecraft accounts
- Phpcraft Proxy
Using Phpcraft
Thanks to Composer, using Phpcraft is really easy. Just head into your project folder and run:
composer require craft/core --no-suggest --ignore-platform-reqs
Next, we'll run a self check:
php vendor/craft/core/selfcheck.php
If any dependencies are missing, follow the instructions, and then run the self check again.
Finally, you can require "vendor/autoload.php";
to use Phpcraft's many APIs.
In addition to the "Projects using Phpcraft" section above serving up great example code, there's also the docs and wiki for you to read.
Modules
You can use modules to extend the functionality of Phpcraft:
Thanks
- Thanks to wiki.vg and the people who're maintaining it.
- Thanks to Jetbrains for providing me with an open-source license for PhpStorm — it's a lovely PHP IDE, and made working on this project much easier.
Phpcraft is not partnered or associated with Microsoft or Mojang.