Repository navigation
Releases
xne 0.3.0.9
xne 0.3.0.9 fixes the rollback of upgrades whose Composer update installs new extensions as dependencies, and proves the full Windows upgrade to Exponential 6.0.15 in CI.
Fixed
- Rollback of extensions Composer added as dependencies. When the kernel's libraries stage installs a package as a dependency of an updated one, its extension folder is named in no composer.json and in no lock of the release. On PHP 8.4 and later, exponential-php-floor 1.3 brings about forty such extensions. The rollback left those folders in place. It now reads the install's composer.lock, finds every extension folder of an extension package that the backup's composer.lock did not name, moves its files aside into the backup and removes the emptied folders. LibrariesTest covers this case.
- Extension folder names. xne now names an extension folder the way the legacy installer does:
extra.ezpublish-legacy-extension-namefirst (se7enxweb/explayouts-api installs intoextension/explayouts_api), thenextra.installer-name, then the package name. The plan's backup of library folders follows the same rule.
Windows
On Windows, upgrades from 6.0.13 to 6.0.14 and from 6.0.14 to 6.0.15 run in CI on Windows Server 2022 and 2025, each followed by an exact rollback of files and database:
- xne CI: https://github.com/se7enxweb/xne/actions/runs/45848213473
- Exponential's Windows CI (the 6.0.14 -> 6.0.15 upgrade and rollback through xne): https://github.com/se7enxweb/exponential/actions/runs/45867228580
About 0.3.0.8
The 0.3.0.8 release notes list a known limit: the full 6.0.14 -> 6.0.15 upgrade on Windows waited on a kernel fix. That limit no longer applies. The kernel fixes are on Exponential main (se7enxweb/exponential#377), and with xne 0.3.0.9 the upgrade and its rollback pass on Windows. The 0.3.0.8 release itself is left as it was published.
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.
xne 0.3.0.10
xne 0.3.0.10 checks the PHP extensions a target release requires before an upgrade changes anything.
Added
- PHP extension preflight.
xne planand the upgrade preflight now read the target release's requirements: theext-*entries of itscomposer.jsonrequire, of itscomposer.lockplatform, and of every package itscomposer.lockinstalls (dev packages are left out). They compare that list with the extensions loaded by the PHP that the kernel's tools and Composer run with (php -m). If an extension is missing, the plan is blocked by the new trapphp-extension-missing, before any backup or file change. The trap names each missing extension and what requires it, gives the php.ini file that PHP loads, and gives the line to add:- Linux:
extension=<name>in php.ini or a conf.d file. If the module is not installed, install your distribution's package first. - Windows:
extension=<name>in php.ini, withext\php_<name>.dllpresent andextension_dir = "ext". - OPcache:
zend_extension=opcache.
- Linux:
xne plan --jsonreports the check underresult.php_extensions(required,missing,php,ini).
Why
Exponential main now requires ext-sockets. In the 0.3.0.9 Windows CI, Composer refused the libraries stage partway through the upgrade until PHP's sockets extension was enabled. This failure is now reported at plan time, with the fix, while nothing has been changed yet.
Tests
PhpExtensionsTest covers the cases in the unit suite: requirements from composer.json, composer.lock and the lock's packages (never the dev ones), core extensions and OPcache's two names, the php.ini lines, and a plan that is blocked before anything changes. The suite runs in CI on Linux (PHP 7.4 and 8.5) and Windows (PHP 8.1 and 8.5), with the real-release upgrades and rollbacks on Windows Server 2022 and 2025.