php-obfuscator icon indicating copy to clipboard operation
php-obfuscator copied to clipboard

How to use it in Windows machine?

Open Nirvanatin opened this issue 7 years ago • 4 comments

I have tried different ways to address the path in Windows CMD.

./bin/obfuscate obfuscate C:/xampp/htdocs/phptest/before C:/xampp/htdocs/phptest/after
bin/obfuscate obfuscate C:/xampp/htdocs/phptest/before C:/xampp/htdocs/phptest/after
./bin/obfuscate obfuscate C:\xampp\htdocs\phptest\before C:\xampp\htdocs\phptest\after
bin/obfuscate obfuscate C:\xampp\htdocs\phptest\before C:\xampp\htdocs\phptest\after
obfuscate C:/xampp/htdocs/phptest/before C:/xampp/htdocs/phptest/after
obfuscate C:\xampp\htdocs\phptest\before C:\xampp\htdocs\phptest\after
obfuscate /before /after

Whatever path I use it gives me the below error:

  [Symfony\Component\Console\Exception\CommandNotFoundException]
  There are no commands defined in the "C" namespace.

Nirvanatin avatar Jul 08 '17 17:07 Nirvanatin

You must run obfuscate through PHP like this:

php ./bin/obfuscate obfuscate C:/xampp/htdocs/phptest/before C:/xampp/htdocs/phptest/after

ivanramosnet avatar Jan 10 '18 17:01 ivanramosnet

For Windows servers works:

cd bin
php ./obfuscate obfuscate D:\SRV\WPTMP\OSPanel\domains\domain.vv\input D:\SRV\WPTMP\OSPanel\domains\domain.vv\output

Brain8torm avatar Sep 06 '20 02:09 Brain8torm

None of this works anyway ... I keep getting error messages

[Symfony\Component\Console\Exception\CommandNotFoundException] There are no commands defined in the "D" namespace.

I have already tested all the variations. This is just one variation PS D:\projects\phpencode\obfuscator\bin> php ./obfuscate D:\projects\phpencode\obfuscator\bin\input D:\projects\phpencode\obfuscator\bin\output

Could anyone help me, please?

Mr-Lion avatar Oct 26 '20 18:10 Mr-Lion

you are missing obfuscate option in your command (after ./obfuscate) command should look like: php ./obfuscate obfuscate D:\projects\phpencode\obfuscator\bin\input D:\projects\phpencode\obfuscator\bin\output

andycrulez avatar May 26 '21 12:05 andycrulez