sekjun9878/makeplugin
最新稳定版本:v1.0.0
Composer 安装命令:
composer require sekjun9878/makeplugin
包简介
A pure PHP implementation of PocketMine DevTools for packing plugins.
README 文档
README
MakePlugin is a library for packing PocketMine plugins without having to use DevTools and PocketMine itself. Unlike DevTools Console, it also reads plugin configuration files like the full DevTools, and writes it as a phar metadata.
Usage:
use sekjun9878\MakePlugin\MakePlugin;
MakePlugin::makePlugin("/path/to/your/project/SimpleAuth", "/path/to/anywhere/for/the/phar/output", MakePlugin::MAKEPLUGIN_COMPRESS);
The first parameter is for your plugin folder.
The second parameter is the directory where your .phar file will go.
By default, it will make up a filename consisting of the plugin name and version.
If you want to override this behaviour (writing directly to the file specified), set the flag MAKEPLUGIN_REAL_OUTPUT_PATH
The third and final option are the flags. Possible flags are:
- MAKEPLUGIN_REAL_OUTPUT_PATH - described above
- MAKEPLUGIN_COMPRESS - compress the resulting phar using the default Phar compression mechanism.
And that's it!
Oh, and there's another function called MakePlugin::getPluginDescription($filename);.
You can use this to get the PluginDescription object off of a plugin.yml. (Used internally)
Have fun!
统计信息
- 总下载量: 19
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-12-18