build: implement php obfustation

This commit is contained in:
2025-11-18 15:33:11 +03:00
parent d6db083dea
commit 3d078900a1
7 changed files with 207 additions and 8 deletions

View File

@@ -0,0 +1,17 @@
<?php
$pharFile = $argv[1] ?? null;
$dstPath = $argv[2] ?? null;
if (! $dstPath) {
throw new InvalidArgumentException('Dst path must be provided');
}
if (! $pharFile) {
throw new InvalidArgumentException('Phar file must be provided');
}
$phar = new Phar($pharFile);
$phar->extractTo($dstPath);
echo "Phar extracted: $pharFile\n";