Something like CSS compressor - reduces the size of the code. The fact is that you have to work with someone else's code, and there the hell understand that without half a liter you cannot figure it out, in general it is difficult to navigate. I searched the Internet, but did not find the required sample ...

  • 6
    How can a compressor help you figure out someone else's code? Oh, and what is it for? Kilobytes (!) Save on the server? I ask you, remember: PHP is not given to the client in its pure form - the result of your script is given and here the speed of its work is more valuable and not the weight on the server! - ferrari
  • one
    I will support the previous speaker. Is it really easier for you to figure out the jqury.min.js code than the jquery.js code? - zb '
  • Well, I did not mean to compress to jqury.min.js =). There is a CSS compressor in which you can just choose the degree of compression. You can compress the code in such a way that unnecessary spaces, tabs, empty lines are removed, the control structures are slightly formatted ... I mean it. - Andrei Talanin September
  • Hy ... I forgot what I needed, in the end, because of this, I was looking for something quite different, I found what I needed. - Andrei Talanin September
  • one
    so maybe the author of the question needs not a compressor, but a code formatter + refactoring tools? - KoVadim

1 answer 1

If I understand correctly, the code must be brought to a normal form. To do this, there are services like this http://beta.phpformatter.com/ or use IDE (Example, PHPStorm: Code -> Reformat Code ... Ctrl + Alt + L).