The best way to obfuscate PHP code is to run it through an encoder. There are good number of professional and open source PHP encoder solutions. Just google for “PHP encoder” to find them.
I am not sure what you mean by getting the mac address in terms of obfuscating your PHP code, but in PHP it is fairly easy to get the mac address. This is one solution.