Install the Loader
The loader installs on the server that runs your protected code. Two ways: the CLI (recommended — it picks the right build and enables it for you) or a manual download.
Option 1 — CLI (recommended)
Section titled “Option 1 — CLI (recommended)”Step 1 — Install the oxrion-loader CLI. This installs the CLI and nothing else — no PHP installation is touched yet:
curl -fsSL https://get-loader.oxrion.com | shirm https://get-loader.oxrion.com/win | iexStep 2 — Install the loader for your PHP:
oxrion-loader installThat downloads the matching loader binary, verifies its checksum, installs and enables it, and verifies the result. Then restart your web server.
Commands
Section titled “Commands”| Command | What it does | |
|---|---|---|
oxrion-loader install | online | Install the loader for a PHP (downloads the binary). |
oxrion-loader verify | offline | Check that the loader is active. |
oxrion-loader info | offline | Environment and install-status report. |
oxrion-loader uninstall | offline | Remove the loader from a PHP. |
oxrion-loader update | online | Refresh the CLI itself to the latest version. |
oxrion-loader self-uninstall | offline | Remove the loader, then remove the CLI. |
oxrion-loader version | Print the CLI version. |
Targeting a PHP
Section titled “Targeting a PHP”Without options, commands apply to the PHP on your PATH. To target a specific one:
OXRION_PHP=/usr/bin/php8.1 oxrion-loader installTo apply to several PHP versions at once, list them in a file (one directory or php path per line) and pass --targets:
oxrion-loader install --targets=php-targets.txtOption 2 — Manual download
Section titled “Option 2 — Manual download”Prefer to do it by hand? Download the build for your exact PHP version and enable it yourself.
- Go to oxrion.com/loader/download and pick your OS and PHP version.
- Move the file into your PHP extension directory.
- Add
extension=oxrionto thephp.iniyour server uses, and restart it.
The download page has the picker, per-build files, and checksums. The full manual walkthrough lives on the loader site: oxrion.com/loader/install.
Confirm it worked
Section titled “Confirm it worked”oxrion-loader verifyOr check directly:
php -m | grep oxrion # Linux / macOSphp -m | findstr oxrion # WindowsIf you see oxrion, protected files will run. If not, see Verifying or Troubleshooting.