This is not really a CGI / PHP question since you can use any language to interact with an API.
Here are a couple of pages about the Skype API:
http://search.skype.com/search?q=api&client=default_frontend&proxystylesheet=default_frontend&output=xml_no_dtd