Do you just need the version number of the current version? If so, it should be relatively easy to get it from modx.com/download with cURL. It's in this form, and there's nothing else like it on the page, so it preg_match() would find it:
<div class="release_package">
<h3>MODX Revolution 2.3.1-pl</h3>
The pattern would be something like this:
$pattern = '#<h3>MODX Revolution ([0-9]{1,2}.[0-9]{1,2}.[0-9]{1,2}\-[a-z]+[0-9]*)</h3>#';
The download link is there also as:
<a class="btn main" href="download/downloading/?id=53cee4dd62cf24023f00294a">Traditional
That should be gettable with this pattern unless the page changes:
$pattern = '#<a class=\"btn main\" href="([^"]+)">Traditional#';
If that would do it, let me know which you need and I'll try to create the full code.
[ed. note: BobRay last edited this post 10 years, 4 months ago.]