The Fourth of July celebration is already in full swing in South-Central Pennsylvania. Pennsylvania fireworks: Staying safe and following the law. According to the state, you are allowed to purchase consumer fireworks if you are 18 or older, but they must be “Class C.” This means the fireworks must contain no more than 50 milligrams of explosive material.