add interface and hook with php