Some PHP package/modules improvements