[CENTER]
PTB (Paymenter ToolBox)[/CENTER]
Paymenter ToolBox (PTB) is a command-line utility built to simplify the management of themes in Paymenter. It allows users to easily export, import, rename, list, and validate themes packaged as <pre class="bg-gray-100 dark:bg-gray-800 p-3 rounded-md overflow-x-auto text-sm my-2"><code>.paytheme</code></pre> files.PTB is the easiest and most reliable way to manage Paymenter themes with zero hassle!
It is written entirely in Bash, works on any Linux system, and is fully compatible with all Paymenter versions.
Whether you're a developer or a system admin, PTB saves you time by automating theme-related operations.
PTB is open-source and rapidly growing in popularity due to its simplicity and efficiency.
You can find the project on
GitHub.
Features
- Export a Paymenter theme directory into a compressed
.paytheme
archive
- Import a
.paytheme
archive directly into your Paymenter themes directory
- Rename themes inside
.paytheme
archives with automatic reference updates
- List the contents of
.paytheme
files for easy inspection
- Extract archive contents to a target directory
- Validate the structure of a
.paytheme
file
- Compare two themes or directories with
diff
- View detailed info about installed themes
Installation Install PTB quickly by running the installer script below:
curl -fsSL https://raw.githubusercontent.com/QKing-Official/PTB/refs/heads/main/installer | bash
This will download and install the PTB CLI tool to your system. Usage
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> # Update a theme with new .paytheme archive
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 to a directory
ptb validate -t <theme_file> # Validate structure of a .paytheme file
ptb diff -t <theme1> <theme2> # Compare two themes or directories
ptb info -t <theme_name> # Display info about an installed theme
ptb --help # Show help menu
ptb --version # Show version info
[I]By default, PTB uses the directory
/var/www/paymenter/themes
.
If you used the installer, PTB is located at
/usr/local/bin/ptb
.
You can also configure a different directory in the ptb file.[/I]
Dependencies Ensure these dependencies are installed. PTB will notify you if any are missing. Credits PTB is designed to support and enhance the Paymenter theme development experience. Thanks to the original Paymenter developers for creating such a powerful platform. For more information on Paymenter, visit: https://github.com/paymenter/paymenter https://paymenter.org/ License Licensed under <a href="https://github.com/QKing-Official/QKOL/blob/main/v3.0/QKING_OPEN_LICENSE_v3.0" target="_blank" class="text-[var(--vp-c-brand-1)] hover:underline">QKOL v3.0</a> — you are free to use, modify, and share PTB. Created by QKing with internal depression.