Generation of php api