Generate php block document