Helper for creation with php api