Help needed with creating sms gateway

is there any php-based script to make my own sms gateway?