modX.getVersionData
Last updated Oct 14th, 2026 | Page history | Improve this page | Report an issue
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$194 per month—let's make that $500!
Learn moremodX::getVersionData¶
Gets the modX core version data. The array contains the following keys (examples for version “MODX Revolution 3.3.0-dev”):
| Key | Example | Meaning |
|---|---|---|
version |
'3' |
The current version number |
major_version |
'3' |
The current major version number |
minor_version |
'0' |
The current minor version number |
patch_level |
'dev' |
The current release level |
code_name |
'Revolution' |
The code name for the product |
distro |
'@git@' |
The distribution marker of the build; for a released package this is the distribution name |
full_version |
'3.3.0-dev' |
A compiled full version name |
full_appname |
'MODX Revolution 3.3.0-dev (git)' |
The entire version name |
Syntax¶
array getVersionData ()
Example¶
Print out the current full version:
$vers = $modx->getVersionData();
echo $vers['full_version'];
See Also¶
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$194 per month—let's make that $500!
Learn more










