What's wrong with the PHP stack? I also use it for my UXWizz platform, which is sort-of a more modern Matomo, and it has worked great so far, very robust and almost no security or upgrading issues (I don't use composer though or external packages, I simply have all the libraries directly in my repo).