I have found Minify. Assetic seems a bit complicated for me.
- Compress CSS and JS, there seems to be something for compressing HTML too.
- You only need to change the urls for example /min/f=js.js instand of js.js
But there is a bug. You have to remove every realpath(...)-function in /min/lib/Minify/Controller/MinApp.php.