forked fromPocketMine/ExamplePlugin
- Notifications
You must be signed in to change notification settings - Fork23
pmmp/ExamplePlugin
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This repository contains a basic example of a modern PocketMine-MP plugin, and a handful of the API features.
This repository shows an example setup for standalone local analysis of a plugin usingPHPStan.
It usesComposer for autoloading, allowing you to install PHPStan extensions such asphpstan-strict-rules. The configuration for this can be seen inphpstan/composer.json
.
Assuming you have Composer and a compatible PHP binary available in your PATH, run:
cd phpstancomposer install
Then you can run PHPStan exactly as you would with any other project:
vendor/bin/phpstan analyze
composer update
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
Topics
Resources
Stars
Watchers
Forks
Languages
- PHP100.0%