php frontend helpers