Skip to content

Commit b6f63a6

Browse files
committed
Updated README
1 parent 9906a9c commit b6f63a6

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ php-packer
22
==========
33

44
A 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();
3737
echo $packed_js;
3838
```

tests/test.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
require '../src/Packer.php';
33
error_reporting(E_ALL);
44
$js = file_get_contents(__DIR__ . '/' . 'test.js');
5-
$packer = new Tholu\Packer\Packer($js, 'Normal', true, true);
5+
$packer = new Tholu\Packer\Packer($js, 'Normal', true, false, true);
66
$packed_js = $packer->pack();
7-
echo $packed_js; ?></script>
7+
echo $packed_js; ?>;</script>

0 commit comments

Comments
 (0)