GW Messenger status in php ?

Is there a way to show a users GW Messenger status on a php webpage ?

We are looking to add this to our internal php phone book.

All suggestions welcome ;-)