Paymenter ToolBox (PTB) is a command-line tool designed to simplify managing themes in Paymenter. It allows you to easily export, import, rename, and list Paymenter themes packaged as .paytheme files.
- Export a Paymenter theme directory to a compressed
.paythemearchive. - Import a
.paythemearchive into the Paymenter themes directory. - Rename themes inside
.paythemearchives, updating references automatically. - List contents of
.paythemearchives for quick inspection.
You can install PTB by running the installer script directly (or by running the ptb file directly):
curl -fsSL https://raw.githubusercontent.com/QKing-Official/PTB/refs/heads/main/installer | bashThis will download and install the ptb CLI tool for use on your system.
ptb export -t <theme_path/theme_name> # Export theme directory to .paytheme file
ptb import -t <theme_file> # Import .paytheme file into themes directory
ptb update -t <old_theme_name> <theme_file_new> # Import .paytheme file into themes directory
ptb rename -t <theme_file> -n <new_name> # Rename theme inside .paytheme archive
ptb list -t <theme_file> # List contents of .paytheme archive
ptb extract -t <theme_file> <output_dir> # Extract .paytheme archive to target directory
ptb validate -t <theme_file> # Validate structure of .paytheme archive
ptb diff -t <theme1> <theme2> # Compare two themes or directories
ptb info -t <theme_name> # Show info about installed theme directory
ptb --help # Show help
ptb --version # Show version
Default theme directory is /var/www/paymenter/themes, but you can specify a different target directory when importing. It's on the start of the ptb file (if you used the installer its at /usr/local/bin/ptb)
tar gzip sed npm
Make sure these dependencies are installed on your system. Ptb will tell you when they aren't installed.
This tool is designed to support and enhance the Paymenter theme ecosystem.
Special thanks to the original Paymenter developers for their great work!
For more about Paymenter, visit the official pages: https://github.com/paymenter/paymenter https://paymenter.org/
QKOL v3.0 — Feel free to use and modify PTB as needed.
Created by QKing with internal depression