simple PHP security library