UK's 'indefinite leave to remain' (closest thing to a green card) requires that you apply from within the UK. https://www.gov.uk/long-residence/apply-to-settle