Skip to content
forked from pmmp/ExamplePlugin

Example PocketMine-MP plugin, showing some basic features of the API

License

Notifications You must be signed in to change notification settings

Endermanbugzjfc/ExamplePlugin

 
 

Repository files navigation

ExamplePlugin

This repository contains a basic example of a modern PocketMine-MP plugin, and a handful of the API features.

PHPStan analysis

This repository shows an example setup for standalone local analysis of a plugin using PHPStan.

It uses Composer for autoloading, allowing you to install PHPStan extensions such as phpstan-strict-rules. The configuration for this can be seen in phpstan/composer.json.

Setting up PHPStan

Assuming you have Composer and a compatible PHP binary available in your PATH, run:

cd phpstan
composer install

Then you can run PHPStan exactly as you would with any other project:

vendor/bin/phpstan analyze

Updating the dependencies

composer update

GitHub Actions

You can find a workflow suitable for analysing most plugins using this system in .github/workflows/main.yml.

About

Example PocketMine-MP plugin, showing some basic features of the API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 65.3%
  • Makefile 34.7%