A Minecraft: Java Edition Server based on Phpcraft.
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.
You'll need PHP, Composer, and Git.
- Debian:
apt-get -y install php-cli composer git - Windows:
- Install Cone, which will install the latest PHP with it.
- Run
cone get composeras administrator. - Install Git for Windows.
First, we'll clone the repository and generate the autoload script:
git clone https://github.com/Phpcraft/server "Phpcraft Server"
cd "Phpcraft Server"
composer install --no-dev --no-suggest --ignore-platform-reqsNext, we'll run a self check:
php vendor/craft/core/selfcheck.phpIf any dependencies are missing, follow the instructions, and then run the self check again.
To update the Phpcraft Server and its dependencies:
git stash
git pull
composer update --no-dev --no-suggest --ignore-platform-reqs
git stash popIf you have made local changes, they will be saved and re-applied after the update.
Now that you've got the Phpcraft Server all set up, you can start it:
php server.phpAfter this, you will find a "config" folder containing the "Phpcraft Server.json" configuration file.