Learning how to minify your HTML and PHP is not very difficult. All you have to do is find a free tutorial or guide that shows you how to use a CSS minifier. Once you have learned how to use one, you can start optimizing your websites with it. One good thing about using a free tutorial is that you will learn how to minify your own content first before you attempt to optimize a whole website or a series of websites. In addition, you get to practice your new skills on real sites to ensure that you are able to maximize your newly learned skill.
If you are still having a hard time understanding how to minify your files, then you should check out Joomla. There is a huge number of free tutorials on how to use Joomla. Furthermore, there is also a great minification plugin called minizer which can also minify your files automatically. This plugin works by going into the inner workings of Joomla to find out where your unwanted files are stored. It then removes these files so that your page looks as neat and clean as possible.