PHP: How to do slash pages to create side pages

Hi,
How do I do pages like this
site.com/Artist/Lil_Wayne

So that Lil Wayne has it’s own page utilizing a code that I can repeat for any artist placed after the slash. I know in php I can do the question mark or hash parameters but I feel like there is a way to do it with the slash because sites like Genius, there is no way they have pages created for every single artist, it’s got to be utilizing some sort of repeating script so that they don’t have to recode everything for each artist. Example genius page - https://genius.com/artists/Kanye-west the kanye west isn’t using the slash or question mark parameter, so how can I do this but with my site?

Thanks,
Austin

You can use a MVC framework like Laravel.