-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathexample.php
More file actions
28 lines (19 loc) · 715 Bytes
/
example.php
File metadata and controls
28 lines (19 loc) · 715 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
// Include the Obfuscator class code.
include 'obfuscator.php';
// Create a new Obfuscator class.
$packer=new Obfuscator();
// Load file with PHP code.
$packer->file('to_pack.php');
// $packer->strip=false; // Turn off stripping whitespace.
// $packer->strip_comments=false; // Turn off stripping comments (Automatically enabled by $strip. Enabling $strip will override this.)
// $packer->b64=false; // Turn off base64 passover.
// Run the packer
$packer->pack();
// Echo the code.
echo $packer->code();
// Or save the code..
// if ($packer->save('packed.php')) echo "Saved file.\n";
// Or you can chain functions together.
// echo $packer->file('to_pack.php')->pack()->code();
?>