# phpcube > High-performance native PHP encoder and licensing system for Linux (PHP 8.4 & 8.3). Zero-disk RAM execution, Ed25519 cryptographic signatures, and automated renewal auto-refresh. Modern IonCube alternative. phpcube protects proprietary PHP source code on Linux x86_64 servers by compiling PHP files into encrypted Zend opcode binaries and verifying domain-bound cryptographically signed licenses. Decryption occurs strictly in volatile RAM inside a native Zend Engine C extension, compilation occurs via `zend_compile_string()`, and the decrypted plaintext memory is immediately zeroed with `memset(0)` before execution. No `eval()` is ever used, and no decrypted files are ever written to disk. ## Documentation & Guides - [Home & Architecture Overview](https://phpcube.dev): Product capabilities, security guarantees, performance benchmarks, and core features. - [Installation Guide](https://phpcube.dev/installation): Quick install for Ubuntu, Debian, RHEL/AlmaLinux, aaPanel, cPanel EA4, Docker, php.ini configuration, and verification commands. - [CLI & Encryption Guide](https://phpcube.dev/encode): Command-line syntax, batch encryption, selective protection (`protected_files.txt`), and vendor key management. - [Pricing & Plans](https://phpcube.dev/pricing): Starter ($3/mo, $29/yr, $79 lifetime), Pro ($9/mo, $89/yr, $249 lifetime), and Agency ($35/mo, $299/yr, $799 lifetime) tiers with quota details. - [Download Loaders](https://phpcube.dev/download): Precompiled universal loaders (`phpcube.so`) for PHP 8.4 and PHP 8.3 on Linux x86_64. - [Partner & Reseller Program](https://phpcube.dev/reseller): Agency redistribution, client sub-accounts, and integration partnerships. - [Contact & Support](https://phpcube.dev/contact): Support email, WhatsApp, and Telegram channels. - [Terms & Refund Policy](https://phpcube.dev/refund): License terms and refund guidelines. - [Privacy Policy](https://phpcube.dev/privacy): Privacy practices and data handling. ## Agentic AI & Machine Data - [Complete Documentation (Single File)](https://phpcube.dev/llms-full.txt): Comprehensive consolidated markdown documentation designed for LLM context windows (all installation scripts, CLI references, encryption internals, licensing architecture, and API specs). - [Machine-Readable Dataset (JSON)](https://phpcube.dev/llms-data.json): Structured JSON dataset containing technical specifications, system compatibility, pricing matrix, CLI flags, REST API schemas, and common FAQ queries. ## Quick CLI Cheat Sheet - Issue a client license: `./phpcube-cli license --client="Acme Corp" --domain="example.com" --expires="2027-12-31" --product-key="SecretKey123" --out="license.lic"` - Inspect a license file: `./phpcube-cli inspect license.lic` - Encrypt a single file: `./phpcube-cli encrypt app/Core/Billing.php --in-place --key="SecretKey123"` - Selective batch encryption (PHP CLI): `php tools/encrypt.php --list=protected_files.txt --in-place --key="SecretKey123"` - One-line loader install (Linux x86_64 PHP 8.3): `curl -fsSL "https://phpcube.dev/api/loader.php?php=8.3" -o phpcube.so && EXT_DIR=$(php -r 'echo ini_get("extension_dir");') && sudo mv phpcube.so "$EXT_DIR/" && echo "extension=phpcube.so" | sudo tee /etc/php/8.3/mods-available/phpcube.ini && sudo phpenmod phpcube && sudo systemctl restart php8.3-fpm` ## REST API Summary - `POST /api/issue.php`: Programmatic license creation (Requires `X-API-Key`). - `POST /api/renew.php`: License renewal and expiry extension (Domain is immutable). - `POST /api/verify.php`: Runtime cryptographic verification check. - `POST /api/inspect.php`: Inspect license metadata and cryptographic payload without vendor private key. - `GET /api/download.php?uuid={uuid}`: Loader self-refresh endpoint with HTTP 304 / ETag support. - `GET /api/refresh-script.php`: Fallback auto-refresh bash cron script. - `POST /api/crypto-checkout.php`: Direct USDT/Crypto payment checkout initialization. - `POST /api/nowpayments-create.php`: Automated NOWPayments multi-crypto invoice generation.