Any person having performed any labor to any amount less than $100 in or for the erection, alteration or repair of any structure or bridge, in pursuance of any contract, expressed or implied, with the owner or reputed owner of such structure or bridge or with any contractor who has contracted for the erection, alteration or repair of any structure or bridge, or any part thereof, may obtain a lien upon such structure or bridge and upon the ground upon which the same may be situated or erected in the manner provided in this subchapter.