No installer available for your platform? Did the installer fail? It is not your taste? YOLO? DIY!
Getting PHP for your server¶
- Create a new directory for PocketMine-MP.
- Download PocketMine-MP.phar (Downloads)
- Rename the .phar to
- Place it in the PocketMine-MP directory you just created.
- Get the start script for your platform (Windows CMD, Windows PowerShell, Linux/MacOS bash)
- (Linux/MacOS only) Make start.sh executable (chmod +x start.sh)
You can also run PocketMine-MP from source code by cloning the GitHub repository using Git.
PocketMine-MP uses Composer to manage its library dependencies. Composer is shipped with our prebuilt PHP packages, but if you want to install it manually, you can do so at https://getcomposer.org.
Clone the repository (recursively, to include submodules):
git clone https://github.com/pmmp/pocketmine-mp.git --recursive # don't forget the --recursive flag!
Install dependencies using Composer
path/to/php path/to/composer.phar install
or, if you have a global Composer installation:
or, if you’re using a prebuilt PHP provided by PMMP, a wrapper for Composer is provided:
If you’re running a production server, you might want to skip dev dependencies and generate a faster autoloader:
bin/composer install --no-dev --classmap-authoritative
See the docs at https://getcomposer.org for more information on using Composer.
Remember to clone with the
--recursive flag! PocketMine-MP has several submodules which are required to run the server.
If you forgot the
--recursive flag when you cloned, you can cd into the server directory and run
git submodule update --init --recursive.
If running a production server, consider using a phar instead for better performance.