I am looking for a way to find out the current version number of the installation in a separate PHP script (identical Documentroot). Any ideas?
Hi,
There is an HTTP API, which returns the installed version:
https://demo.matomo.org/index.php?module=API&method=API.getMatomoVersion&format=JSON&token_auth=anonymous
You may need to add the auth token of a user with read access to at least one site.
I found the HTTP API - but im inside a docker container without curl or smth.
I saw there is a class calle /piwk/core/Version.php with a const named VERSION - how to use these class?
Hi,
The following works for me:
require_once "core/Version.php";
echo Piwik\Version::VERSION;
hi lukas - thanks (i’ve tried this yesterday with an error) - maybe today is a better day.