How to Send SMS Using PHP and WaSMS.net API (Free Gateway Setup)
Learn how to send SMS using PHP and WaSMS.net's free SMS API. This step-by-step guide shows how to use your own Android phone as a gateway — no need to buy third-party credits or licenses.

How to Send SMS Using PHP and WaSMS.net API (Free Gateway Setup)
If you're looking for a simple way to send SMS using PHP without paying for services like Twilio or Nexmo — this guide is for you.
We’ll show you how to integrate WaSMS.net, a free SMS gateway that uses your own Android phone as the delivery engine. It's cost-effective, private, and ideal for developers.
???? Step 1: Install the WaSMS Android App
- Go to WaSMS.net
- Download the Android App from the dashboard
- Log in and connect your app with the account
Once connected, your phone becomes your SMS Gateway.
???? Step 2: Use the API to Send SMS via PHP
Here’s a simple PHP code example:
```php
$api_key, 'device' => $device, 'number' => $number, 'message' => $message, ]; $curl = curl_init("https://app.wasms.net/api/send"); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_POSTFIELDS, $data); $response = curl_exec($curl); curl_close($curl); echo $response; ?>
What's Your Reaction?






