php-installer-ioncube-sourceguardian is a PHP script that automates downloading, extracting, and installing the latest IonCube and SourceGuardian loaders for PHP on Linux x86-64 systems.
It simplifies the process of enabling these widely-used PHP encoders' loaders by fetching the appropriate loader versions for your current PHP installation.
- Automatically detects your PHP version and thread safety (ZTS/non-ZTS).
- Downloads the correct IonCube and SourceGuardian loaders.
- Extracts and installs loaders to your PHP extension directory.
- Generates
.iniconfiguration files to enable loaders. - Cleans up temporary files after installation.
- Supports Linux x86-64 architecture.
- PHP 7.x or 8.x installed on a Linux x86-64 system.
- PHP CLI access with permissions to write to the PHP extension directory and PHP config directory (
conf.d). - PHP Phar extension enabled (required for archive extraction).
- Clone or download this repository.
- Run the installer script from the command line:
php install_loaders.phpThe script will automatically detect your PHP version and install the matching IonCube and SourceGuardian loaders.
The script fetches loader information from the following JSON data sources:
-
IonCube Loaders:
https://basemax.github.io/ioncube-loaders-linux-x86-64/data.json -
SourceGuardian Loaders:
https://basemax.github.io/sourceguardian-loader-linux-x86-64/data.json
- This script assumes the PHP extension directory and configuration directory are writable.
- Tested primarily on Linux x86-64 with PHP 7.x and 8.x.
- Please run with appropriate permissions (e.g., sudo) if necessary.
If you encounter any issues or have feature requests, please open an issue in this repository.
This project is licensed under the MIT License. © 2025 Max Base
Max Base https://github.com/BaseMax
Thank you for using php-installer-ioncube-sourceguardian!
Happy PHP encoding 😊