Neighbours had to leave their homes after the garden fire spread to outbuildings and gas cylinders.