I wrote a simple PHP class for sending SMS messages through smsBug gateway. It can send a single SMS message and receive the number of credits left (see the UML diagram of the classes below). You need to include two classes into your PHP code. Then you can send SMS messages as follows:

I made a simple web form that can be used to send a single SMS message to a mobile number.
After downloading it you can use it without any programming. You can modify the source code as you wish, it is free (GPL license). The SMS gateway supports a lot more methods, you can improve the code if you need more functionality.


UML classdiagram

Screen shot of the Ajax interface

Your comments, suggestions are welcome. If you improved the code or found a bug, please let us know. Now, download the source code and have fun :).

3 Responses to “Send SMS messages from your website through smsBug gateway”

  1. Web devlopment blog Says:

    […] (see the UML diagram of the classes below). You need to include two classes into your PHP code. Send SMS messages with PHP, this includes the source (downloadable,) as well as an example on how to use it. A great free […]

  2. meehir bhatt Says:

    hey its such a coooool code which m looking since a lot time…thanks if it works…. :)

  3. W3Net.eu » Blog Archive » Email notifier in PHP Says:

    […] sending SMS messages I chose to use SmsBug (smsbug.com) SMS gateway as I am satisfied with its quality and price. The […]

Leave a Reply