(a) No opening shall be made in any city street or right-of-way, nor shall any structure be placed therein or there over, nor shall any structure, which has been so placed, be changed or removed, except in accordance with a permit from the city. No street or right-of-way shall be dug up for laying or placing pipes, sewers, poles, or wires, or for other purpose, and no trees shall be planted or removed or obstructions placed thereon, without the written permit of the city or its duly authorized agent, and only in accordance with the regulations of the city. The work shall be done under the supervision and to the satisfaction of the city; and the entire expense of replacing the street or right-of-way in as good condition as before shall be paid by the persons to whom the permit was given, or by whom the work was done.
(b) A violation of any provision of this section shall be a misdemeanor, and the person or corporation violating the same shall, upon conviction thereof, be fined not less than $25 nor more than $100 for each offense.