consolidating php