Official SourceGuardian PHP encoder — download, configure, and run. No build required.
Drop your plain PHP source files into the source/ folder, run the binary, and get official SourceGuardian compiled & protected bytecode files in encoded/ — preserving the full directory tree.
source/
├── index.php ← plain PHP source
└── app/
└── core.php ← plain PHP source
↓ encoder --php 8.2 ↓
encoded/
├── index.php ✓ SourceGuardian protected bytecode
└── app/
└── core.php ✓ SourceGuardian protected bytecode
Pre-compiled static binaries — no installation, no dependencies. Download the archive for your platform, extract, and run.
| Platform | Architecture | Download |
|---|---|---|
| Windows | amd64 (64-bit) | encoder-windows-amd64.zip |
| Windows | x86 (32-bit) | encoder-windows-386.zip |
| Windows | ARM64 | encoder-windows-arm64.zip |
| Linux | amd64 (64-bit) | encoder-linux-amd64.zip |
| Linux | x86 (32-bit) | encoder-linux-386.zip |
| Linux | ARM64 / aarch64 | encoder-linux-arm64.zip |
| Linux | ARM32 (ARMv7) | encoder-linux-armv7.zip |
| macOS | Intel (amd64) | encoder-darwin-amd64.zip |
| macOS | Apple Silicon (ARM64 M1/M2/M3/M4) | encoder-darwin-arm64.zip |
| FreeBSD | amd64 | encoder-freebsd-amd64.zip |
Windows (PowerShell)
# Download
Invoke-WebRequest -Uri "https://github.com/phpvault/sourceguardian_encoder/raw/refs/heads/main/encoders/encoder-windows-amd64.exe.zip" -OutFile encoder.zip
Expand-Archive encoder.zip .Linux / macOS (bash)
# Download
curl -L "https://github.com/phpvault/sourceguardian_encoder/raw/refs/heads/main/encoders/encoder-linux-amd64.zip" -o encoder.zip
unzip encoder.zip
chmod +x encoder-linux-amd64Save your key once with:
./encoder config -key YOUR_KEY_HEREOr set the environment variable:
export EASYENCODER_API_KEY="YOUR_KEY_HERE"Get your key & credits → Join @phpvault on Telegram.
The source/ and encoded/ directories are handled automatically.
Copy your PHP source scripts or whole project folders there — subdirectories are fully preserved.
your-folder/
├── encoder.exe (or encoder-linux-amd64, encoder-macos-arm64 …)
├── source/
│ └── your-files.php
└── encoded/ ← encoded files generated here
# Default target PHP version (8.2)
./encoder -i ./source -o ./encoded
# Target specific PHP version (7.1 – 8.4)
./encoder -i ./source -o ./encoded --php 8.1
./encoder -i ./source -o ./encoded --php 7.4
# Max Obfuscation profile
./encoder -i ./source -o ./encoded --type SourceGuardian_max
# Help
./encoder --helpOfficial SourceGuardian compiler engines supported:
| Target Runtime | Versions |
|---|---|
| PHP 7.x | 7.1 7.2 7.4 |
| PHP 8.x | 8.1 8.2 8.3 8.4 |
Default target version: 8.2
Usage: encoder [flags] <command> [arguments]
encoder -i <input_path> [-o <output_path>] [flags]
Commands:
encode <path> Encode a single PHP file or an entire directory
credits, balance Show your remaining account credits and expiry
ping Test connectivity and verify your key
config View or update saved key
help, -h Show this help message
Options:
-i, -input <path> PHP file or folder to encode
-o, -output <path> Destination file or folder
-key <key> Your Access Key (or env EASYENCODER_API_KEY)
-php <version> Target PHP: 7.1, 7.2, 7.4, 8.1, 8.2, 8.3, 8.4 (default: 8.2)
-type <profile> Profile: SourceGuardian (ASCII), SourceGuardian_binary, SourceGuardian_max (default: SourceGuardian)
-strip-comments Strip comments and PHPDoc before encoding (default: true)
-header <comment> Custom copyright comment in file header
-concurrency <n> Parallel workers for directories (default: 4)
-timeout <sec> Timeout in seconds per job (default: 120)
==================================================
EasyEncoder SourceGuardian Compilation | PHP 8.2
==================================================
Target PHP: PHP 8.2
Encoder Type: SourceGuardian
Input Dir: source/
Output Dir: encoded/
Concurrency: 4 parallel workers
==================================================
[>] Encoding index.php ...
[✓] Done index.php -> encoded/index.php
[>] Encoding app/core.php ...
[✓] Done app/core.php -> encoded/app/core.php
==================================================
SUMMARY:
Total PHP Files: 2
Successfully Encoded: 2
Failed: 0
Destination: encoded/
==================================================
| Error | Meaning |
|---|---|
Key is required |
Pass -key ... or save it via encoder config -key ... |
unauthorized |
Key is invalid, inactive, or revoked |
subscription_required |
Service access requires an active plan |
insufficient_credits |
Account has 0 credits — top up credits via Telegram |
rate_limited |
Request rate limit reached — please slow down |
Connection failed |
Network connectivity error — check your internet connection |
| Code | Meaning |
|---|---|
0 |
All files encoded successfully |
1 |
Configuration, authorization, or encoding error |
Join the official Telegram channel for updates, announcements, and support: