naneau / php-obfuscator

A parsing PHP obfuscator
587 stars 181 forks source link

is it possible to obfuscate symfony2 projects? #12

Closed ladiko closed 7 years ago

ladiko commented 9 years ago

And if yes, which configuration is needed?

naneau commented 9 years ago

It should be possible to obfuscate any PHP code, no special configuration is needed if you point it to your src folder.

gianluca78 commented 9 years ago

No, it doesn't work because Symfony2 uses annotations and php-obfuscator remove them from the source code.

naneau commented 9 years ago

Yes, if your code relies on annotations and other forms of meta-programming this form of obfuscation obviously won't work.

davide-c commented 7 years ago

You can use yml annotations (tested with silex + doctrine + symfony 3.x security and routing), you will need to avoid obfuscating controller action arguments since this will break dynamic routing:

/route/{var}/

function($d68f7) {