I am looking for a php script for sms receiving with api support

I want a php script that can be used to get connected with http://www.getsmscode.com/ and http://smspva.com/
Is there any?