My question involves emancipation laws for the State of:Pennsylvania.

I am 17 years old turning 18 in October and have recently been through a lot within the past few months with deaths and just all sorts of frustration and I find that it will be easier for me to live on my own,I have a job, my Junior year of online schooling for high school, and my boyfriend who is 18 has an apartment so i would have a place to live. How would I go about being emancipated? Like what all is required.