pk-fr / yakpro-po

YAK Pro - Php Obfuscator
http://www.php-obfuscator.com
Other
1.27k stars 354 forks source link

take advantage of phpdoc comment #67

Open the-liquid-metal opened 4 years ago

the-liquid-metal commented 4 years ago

If i am not wrong, YAK Pro does not have mechanism/options to exclude specific code from being processed whatever the the config is set. For example, i have $conf->obfuscate_variable_name = true;, but i want all vars inside MyClass::myMethod() to be excluded. There is no way to do that.

If YAK Pro can takes advantage of phpdoc comment, may be this problem can be solved (and potentially others).

class MyClass {
    /**
     * @obfuscate_variable_name false
    */
    public function myMethod() {
        // ...
    }
}

or

class MyClass {
    /**
     * @no_obfuscate_variable_name
    */
    public function myMethod() {
        // ...
    }
}
Stevemoretz commented 2 years ago

This is really a smart idea.