WiseLoop PHP Javascript Obfuscator 4.0.0
Anti-Theft Protection for JavaScript Source Code
wlJSO Class Reference

Static Public Member Functions

static obfuscate ($js, $doMinify=true, $doScrambleVars=true, $doLockDomain=false, $encryptionLevel=1, $expirationDate=null, $showLockAlerts=false)
static obfuscateByPreset ($js, $presetName)

Detailed Description

WiseLoop JavaScript Obfuscator class definition

Author:
WiseLoop

Member Function Documentation

static obfuscate ( js,
doMinify = true,
doScrambleVars = true,
doLockDomain = false,
encryptionLevel = 1,
expirationDate = null,
showLockAlerts = false 
) [static]

Performs obfuscation against JavaScript code.

Parameters:
string$jsthe original JavaScript code, or URL path to a JavaScript file
bool$doMinifyspecifies if the obfuscator will perform code minimization
bool$doScrambleVarsspecifies if the obfuscator will obfuscate the declared variable names inside the JavaScript source code
bool$doLockDomainspecifies if the obfuscator will lock the JavaScript source code to current domain only
int$encryptionLevelhow hard the obfuscator will encrypt the JavaScript source code before delivery; zero means that no encryption will be made
string$expirationDatethe script expiration date in yyyy-mm-dd format
bool$showLockAlertsspecifies if the explaining alert messages will be shown when the script expires or it runs on another internet domain and the lock domain setting is on
Returns:
string the obfuscated JavaScript code
static obfuscateByPreset ( js,
presetName 
) [static]

Performs obfuscation against a JavaScript code using a preset configuration like minify, decent, default, hard, paranoid, or any other preset created by user.

Parameters:
string$jsthe original JavaScript code, or URL path to a JavaScript file
string$presetNamethe configuration preset filename located under the /config directory (without .php extension)
Returns:
string the obfuscated JavaScript code

The documentation for this class was generated from the following file:
 All Data Structures Functions Variables