Skip to content
play

GitHub Action

Setup PHP for PocketMine-MP

3.2.0 Latest version

Setup PHP for PocketMine-MP

play

Setup PHP for PocketMine-MP

Install PHP and Composer for PocketMine-MP and related projects

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Setup PHP for PocketMine-MP

uses: pmmp/setup-php-action@3.2.0

Learn more about this action in pmmp/setup-php-action

Choose a version

setup-php-action status

setup-php-action

This action installs PHP and Composer for PocketMine-MP from pmmp/PHP-Binaries releases.

This is used internally for PM's own CIs, and can also be used by plugins using GitHub Actions.

Currently only supported on Linux, but MacOS and Windows support is planned for the future.

Inputs

Name Required Possible values Description
php-version YES Any version available in pmmp/PHP-Binaries (currently 8.1 and 8.2) PHP version, must be a full major.minor.patch
install-path YES Folder path Path to install the binary into (e.g. ./bin)
pm-version-major NO 4, 5 Major version of PocketMine-MP to build extensions for