Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
/ExamplePluginPublic template
forked fromPocketMine/ExamplePlugin

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

NotificationsYou must be signed in to change notification settings

pmmp/ExamplePlugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 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.

Setting up PHPStan

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

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

Topics

Resources

Stars

Watchers

Forks

Languages

  • PHP100.0%

[8]ページ先頭

©2009-2025 Movatter.jp