add OnApp 3.3 compatibility
add PHP version check
remove class constructor
add dynamic class name definition