Create phpr_securityframework.php

Added initial working phpr_securityframework class which contains legacy support.