PHAR Converter is an easy to use program that converts PHAR files into directory and vice versa. PHAR Converter has been tested to convert PocketMine-MP plugins.
- Several compression methods
- Direct conversion
- Environment variable support
- Configuration file
- Easy to use
- And much more!
To use PHAR Converter, you need Git installed. Currently, PHAR Converter only supports Windows 64-bit. PHAR Converter may work on Windows 32-bit, however it has not been tested.
WARNING: PHAR Converter is currently under Beta. There may be some bugs and compatibility issues. Click here to read about contributing.
Packaged source is available to download directly here.
- Clone the repository recursively using Git
git clone https://github.com/KygekTeam/PHAR-Converter
- Change directory to
PHAR-Converter
cd PHAR-Converter
- Run
pharconverter
or openpharconverter.cmd
directly to launch PHAR Converter!
To convert PHAR file or directory directly, PHAR Converter should be run from Command Prompt (pharconverter
).
Parameters:
--mode="{MODE}"
: Specify the convert mode (Available modes:ptd
,phartodir
,dtp
,dirtophar
)--name="{NAME}"
: Specify the PHAR file/directory name to be converted
Example:
pharconverter --mode=ptd --name=KygekJoinUI
Converts KygekJoinUI.phar
to directory KygekJoinUI
To use PHAR Converter via environment variable, you need to add the PHAR Converter directory root to Settings > System > About > Advanced System Settings > Environment Variables > System Variables > Path
.
Please note that you need to specify full PHAR/directory path that you want to convert if you use PHAR Converter via environment variable.
Example: Use C:\Something.phar
instead of directly Something.phar
.
We accept contributions! To contribute, please fork the dev
branch and create a pull request to the dev
branch. All pull requests to the main
branch will be closed immediately.
If you found any bugs or want to give suggestions/feedbacks, please create an issue.
Should you need any assistance, please join our Discord server.