@@ -2,7 +2,7 @@ php-packer
22==========
33
44A PHP version of Packer, JavaScript obfuscation library originally created by Dean Edwards, ported to PHP by Nicolas Martin.
5- Packed for composer by Thomas Lutz.
5+ Packed for composer and slightly extended by Thomas Lutz.
66
77## Installation
88
@@ -21,18 +21,18 @@ $js = file_get_contents('test.js');
2121 * $script: the JavaScript to pack, string.
2222 * $encoding: level of encoding, int or string :
2323 * 0,10,62,95 or 'None', 'Numeric', 'Normal', 'High ASCII'.
24- * default: 62.
24+ * default: 62 ('Normal') .
2525 * $fastDecode: include the fast decoder in the packed result, boolean.
26- * default : true.
27- * $specialChars: if you are flagged your private and local variables
26+ * default: true.
27+ * $specialChars: if you have flagged your private and local variables
2828 * in the script, boolean.
2929 * default: false.
3030 * $removeSemicolons: whether to remove semicolons from the source script.
3131 * default: true.
3232 */
3333
3434// $packer = new Packer($script, $encoding, $fastDecode, $specialChars, $removeSemicolons);
35- $packer = new Packer($js, 'Normal', true, true);
35+ $packer = new Packer($js, 'Normal', true, false, true);
3636$packed_js = $packer->pack();
3737echo $packed_js;
3838```
0 commit comments