pk-fr / yakpro-po

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

a simple option for handling external libraries #66

Open the-liquid-metal opened 4 years ago

the-liquid-metal commented 4 years ago

Rather than sets $conf->t_ignore_* manually, it is better to provide a single config entry $conf->library_paths which contains all the path of libraries. The steps are:

so $conf->t_ignore_* entered by user are minimal.

KminekMatej commented 7 months ago

WIP at my fork https://github.com/KminekMatej/yakpro-po

sedimentation-fault commented 5 months ago

This is probably the most important feature request for this project. It is always a PITA having to ripgrep for "function ..." in newly included external libraries and exclude the names of their methods by putting them manually in the corresponding array of the configuration file - same for classes.

KminekMatej commented 5 months ago

I started to work on this feature, however its nearly impossible to detect external library usage on static analysis level without tools closely experienced for that case, like PHPStan.

I will try to implement this analysis using PHPStan used to detect external libraries, but I am afraid the changes which would have to be done in current project would be so high it would probably be easier to write it as an extension for PHPStan rather that updating yakpro-po.

Still in development though - gonna be a loong ride :)