PHP from_time() – a human readable time span phrase

I’m sure this has been done many times before, but I wanted something to turn a date time string like ‘2 days and 9 hours ago’ to give the last deployment time on a little git deploy tool I’m working on in my spare time.

Here’s the code…