Bulk SMS API Integration in PHP Application

PHP Bulk SMS API Integration: Bulk SMS is a popular message service provider. It gives the facility to send bulk mobile messages over hundreds of mobile networks. One can easily use Bulk Sms service into his application by using its api, known as Bulk Sms API.

Steps to Integrate the Bulk SMS API in PHP

First thing one need to do is to create an account into bulksms.com with one mobile number and an existing email address as main prerequisites.

Here is the URL, you need for registering your account:

https://www2.bulksms.com/register/

After registering, please note down your username, password and mobile number, as these will be later used inside the api code to make it working for you.

A very important thing to mention here that, the number of api transactions is proportional to the Credits you have in your account. Initially it is zero.

For every new user, BulkSms offers some free credits (5 credits usually), which automatically adds into your account, after you enter the registration code (sent to the registered phone number) into the text box and click Claim button. (See fig. below)

sms3

Now login into your account to get a dashboard like below.

sms2

Here you can see how many messages you sent, received via Bulk SMs api and many more.

Now let us move to coding part.

Get the integration code by following the link:

http://developer.bulksms.com/eapi/code-samples/php/send_sms/

You can get a downloaded copy of the code with name int-send_sms.php or get it here:

Now place the file int-send_sms.php on the execution path/folder and just execute it within the browser. You will see the response in form of 3 lines normally (indicating the message status).

(User is advised to use a live web server rather than the local sever to avoid any need of required security certificate etc.)

It may take a little time to arrive, after that you can see the test message on the phone number you supplied into the code.

You can also see the check the status of sent message under SENT MESSAGES section in your Bulksms account dashboard.

sms5

Please also note that, once your credits are finished you cannot send any messages. Then user will be required to buy credits from Bulksms.com.

Hope, the article will help you to integrate Bulk SMS API in PHP application. Thanks

Recommended Posts For You

About Manish Kumar

I am PHP web developer and blogger.

View all posts by Manish Kumar

Leave a Comment

Your email address will not be published. Required fields are marked *