PHP realization for Html Elements framework