sof3 / 咽部
0.3.7
2024-06-13 15:25 UTC
Requires
- php: >=8.0
- composer/composer: ^2.5.8
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.4
- phpstan/phpstan: ^1.7
- phpunit/phpunit: ^9.5.16 <9.5.17
This package is auto-updated.
Last update: 2024-09-09 04:00:05 UTC
README
一个用于将PHP源代码重新编译成PSR-0 Phar的工具
USAGE -v : Enable verbose output. -i PATH : Equivalent to `-f plugin.yml:PATH/plugin.yml -f PATH/resources -s PATH/src`. -f NAME:PATH : Copy the file or directory at PATH to output/NAME. `:` is not considered as a separator if immediately followed by a backslash. Can be passed multiple times. -s PATH : Use the directory at PATH as a source root. Can be passed multiple times -r NAME : The path of the source root in the output. Default `src`. -o PATH : Store the output in directory form at PATH. -p[=PATH] : Pack the output in phar form at PATH. If no value is given, uses the path in `-o` followed by `.phar`. If neither -o nor -p are passed, or only `-p` is passed but without values, `-p output.phar` is assumed. EXAMPLE php pharynx.phar -i path/to/your/plugin -p output.phar
与PocketMine插件配合使用
从发布版下载start.cmd/start.sh、pharynx.phar和bootstrap-plugin-dev.php,并将它们复制到您的PocketMine安装目录中。用下载的版本替换PocketMine的start.cmd/start.sh。编辑start.sh/start.cmd,将"plugin_source/MyPlugin"
更改为要使用pharynx构建的插件(只有start.sh支持多个插件)。然后像平常一样启动服务器即可!