Closed CrCs2O4 closed 8 years ago
Hi,
I've never used composer so far... But the following is true with every piece of non-obfuscated software that your obfuscated software uses.
All shared items ( classes, vars, functions, etc.) has to be ignored using the $conf->t_ignore_xxx arrays of your yakpro-po.cnf file.
that means:
another option is to obfuscate all software pieces that you use along with your software...
you need to try composer it's de facto standard dependency manager for php & would be great if YAK Pro correctly obfuscate it from the box without issues.
I'm trying to obfuscate all software pieces INCLUDING composer. The easiest way example (simple micro-framework):
php composer.phar require mikecao/flight
<?php
require 'vendor/autoload.php';
Flight::route('/', function () {
echo 'Hello World!';
});
Flight::start();
php -S localhost:8000 index.php
Thanks a lot!
Hi, thanks for your advice, I will have a look one day when I have time... but so far, I am overloaded, and do not have time to deal with 3rd party frameworks... somebody has already asked me for the same things concerning wordpress plugins...
If you want to create and maintain a repository with specific out of the box yakpro-po.cnf files for each available framework, it's up to you... ...and I will be very happy to provide a link to your repository!
Please read carefully the "YOU MUST BE AWARE OF THE FOLLOWING" and "Hints for preparing your Software to be run obfuscated" sections of https://github.com/pk-fr/yakpro-po/blob/master/README.md .
your specific yakpro-po.cnf file for a specific framework must be edited by the final user, adding to the t_ignore_xxx all item that are indirectly called by the framework. (for ex: all the function names you register using a string that represents the function name)
cheers, Pascal
@CrCs2O4 Did you find the way to work with composer?
Hi, Pascal! First of all - thanks a lot for YAK Pro, it's the best php obfuscator, I saw on github.
Need some help to work it out with my current project, that use composer autoload https://getcomposer.org/doc/01-basic-usage.md#autoloading
Before obfuscation: vendor/composer/autoload_real.php
After obfuscation vendor/composer/autoload_real.php
It need's to be:
and so on. When I corrected this file myself and go deeper - there are more errors like this in files, that are automatic generated by composer.
So my question is - Did you try to obfuscate projects, that use composer? If yes, what settings I need to make in yakpro-po.cnf to make it work? Maybe add some standard composer classes in t_ignore_pre_defined_classes?
Thanks!