How?

Can I get the definitive how to install and where? I saw a few different paths and I'm very confused.

Where does the the php file go? When does the plugin folder go?

And how to work out how to make it work when it doesn't?

Thanks,

Matt