Repository navigation
xne 0.3.0.8
xne (Exponential Network) is a command-line tool for upgrading Exponential installs safely. It detects the install, plans the upgrade, makes a verified backup, upgrades, checks the result, and rolls everything back if any step fails. It is written in pure PHP 7.4 to 8.5 and runs on Linux, macOS and Windows.
This is the first public release. Versions only raise the last position: 0.3.0.9 follows this one.
Features
- detect, traps, plan: reads the install (version, install type: git, Composer or plain files; PHP; databases; extensions), lists known upgrade traps, and prints a plan with the file diff against
share/filelist.md5, local edits, database steps and the order of steps. Use--jsonfor tools. - Verified backup before every change: a database dump through the install's own settings, plus every file that will change. The backup is read back before anything is touched. The last
backup_keepbackups are kept. - upgrade: a verified file patch or a git fast-forward, then the kernel's own
exp:upgrade(or the SQL update files on older releases), autoloads, targeted cache clears and a health check. Visitors keep being served by default; the maintenance page is optional. - Automatic rollback: any failure after the backup restores files and database.
xne rollbackdoes the same by hand, and git installs can roll back to a tag. - Five database engines: MySQL/MariaDB, PostgreSQL, SQLite, Oracle and MongoDB.
- Channels: stable, beta, main (nightly, with a warning) and security-only. Release sources are ranked (GitLab mirror, GitHub, Packagist, local folder).
- Exponential Network:
xne checkasks network.se7enx.com which upgrades and advisories apply.xne reportsends a signed health report (install keys; never content or user data). The same API code can be self-hosted. - Notify hooks (new in 0.3.0.8):
notify_problem_cmd,notify_ok_cmdandnotify_event_cmdrun any alerting, chat or ticket tool, with placeholders andXNE_NOTIFY_*environment variables, without a shell. - Safety rules: one run per install (lock); local edits kept aside and listed; nothing deleted (retired files go into the backup); secrets never printed.
Windows
Windows is proven in CI on Windows Server 2022 (PHP 8.1 and 8.5) and Windows Server 2025 (PHP 8.5):
- the full unit suite, including the
xne.batandxne.ps1launchers (cmd, Windows PowerShell and PowerShell 7, paths with spaces); - a real Exponential 6.0.13 -> 6.0.14 upgrade on SQLite, followed by an exact rollback of files and database;
- a plan and a dry run of 6.0.14 -> main (6.0.15).
XAMPP, WampServer and Laragon PHP builds are found automatically. See doc/windows-guide.md.
Known limit
On Windows, the full 6.0.14 -> 6.0.15 upgrade waits on a kernel fix. The kernel's autoload generator does not leave out extension tests/ folders on Windows, so its exp:upgrade step fails. xne then rolls the install back exactly, as designed. The fix belongs in the kernel: se7enxweb/exponential#377. Linux is not affected.
Install
composer require se7enxweb/xne
vendor/bin/xne helpOr clone the repository and run install.sh --apply as root (Linux), or bin\xne.bat on Windows. Start with README.md and doc/upgrade-guide.md.
License: GPL-2.0-or-later.