The cities of the first class of this Commonwealth shall have the power to make all such ordinances, by-laws, rules, and regulations not inconsistent with or restrained by the Constitution and laws of this Commonwealth as may be expedient or necessary for the proper management, care, and control of the city and its finances, and the maintenance of the peace, good government, safety, and welfare of the city and its trade, commerce, manufactures; and the exercise of full and complete powers for local self-government in matters of police, and the same to alter, modify and repeal at pleasure; and to enforce all ordinances by imposing fines upon inhabitants or other persons for violation thereof, not exceeding one hundred dollars for any one offense, recoverable with costs, together with judgment of imprisonment not exceeding thirty days if the amount of said fines and costs shall not be paid into the court imposing the fines within ten days from the date of the imposition thereof.
53 P.S. § 13371