Service php code complete