PHP Custom-runtime Resources