PHP abstraction for initialization and management of application resources