Your PHP application
Laravel, Symfony, WordPress, a CRON job or custom backend starts the action.
PHP SMS & WHATSAPP SDK
Install one Composer package and send SMS from your own connected mobile number or send WhatsApp messages from Laravel, Symfony, WordPress, CRON jobs and custom PHP applications.
composer require
smsmobileapi/smsmobileapi-php✓<?php
require __DIR__ . '/vendor/autoload.php';
use SMSMobileAPI\SMSMobileAPI;
$client = new SMSMobileAPI(
getenv('SMSMOBILEAPI_KEY')
);
$result = $client->sendMessage(
'+32470000000',
'Your appointment is confirmed.',
false,
true
);
FROM PHP TO A REAL MOBILE
The SDK removes repetitive HTTP setup while preserving the core SMSMobileAPI model: business logic stays in PHP and SMS delivery uses the real mobile phone, SIM and number connected to your account.
Laravel, Symfony, WordPress, a CRON job or custom backend starts the action.

Authenticates the request, applies routing and keeps the activity visible.
The connected phone uses its existing number and mobile plan to send the SMS.
The recipient receives a normal SMS and can reply to the number they already know.
QUICK START
Use a test recipient you control. Keep the API key outside source control, verify that the mobile is online and inspect the returned array before connecting the call to a live business event.
$ composer require smsmobileapi/smsmobileapi-php
<?php
require __DIR__ . '/vendor/autoload.php';
use SMSMobileAPI\SMSMobileAPI;
$apiKey = getenv('SMSMOBILEAPI_KEY');
$client = new SMSMobileAPI($apiKey);
$response = $client->sendMessage(
'+32470000000',
'Hello from PHP!',
false, // sendWA
true // sendSMS
);
print_r($response);
ONE METHOD, CLEAR CHANNEL CONTROL
The official client exposes sendMessage(). Two Boolean parameters select WhatsApp and SMS, while an optional fifth parameter schedules the request with a Unix timestamp.
Use false, true. The SMS is routed to your connected phone and sent with its SIM and existing mobile number.
$client->sendMessage(
$to, $message,
false, true
);Read SMS documentation →Use true, false. Connect WhatsApp first from the dashboard and verify the connection before automating messages.
$client->sendMessage(
$to, $message,
true, false
);Read WhatsApp documentation →Pass a Unix timestamp as the fifth parameter. Store the intended timezone explicitly in your application before creating it.
$client->sendMessage(
$to, $message,
false, true, $timestamp
);Review endpoint parameters →PHP WHERE YOUR BUSINESS ALREADY RUNS
The SDK fits behind your existing application layer. Your code decides when to communicate, which data to include and how to handle the result.
Wrap the client in a service and call it from jobs, listeners, controllers or your notification layer.
Queues · Events · ServicesRegister the client as a service, inject it where needed and keep the API key in protected configuration.
DI · Messenger · ConsoleAdd SMS or WhatsApp actions to a custom plugin, form workflow, WooCommerce extension or administrative tool.
Hooks · Plugins · WooCommerceSend operational alerts, scheduled reminders or controlled batch notifications from server-side jobs.
Monitoring · Tasks · Alerts
STANDARD PHP TOOLING
The package uses PSR-4 autoloading and Guzzle 7. Composer resolves the dependency, your existing autoloader loads the client and your application keeps control of validation, business rules and error handling.
PRODUCTION CHECKLIST
The SDK simplifies the call, but your application remains responsible for secure credentials, clean input, controlled retry behavior and useful operational logs.
PRACTICAL PHP USE CASES
Confirm account actions, appointments and service updates from the backend that already knows the customer context.
Send payment, preparation, shipping or pickup updates from e-commerce and ERP processes.
Notify a real phone when monitoring, backups, infrastructure or important business jobs require attention.
Trigger personalized SMS or WhatsApp from lead, ticket and customer lifecycle events.
PHP SDK FAQ
The SDK is the PHP client. The channel connection, account configuration and operational activity remain available through SMSMobileAPI.
Yes. Install smsmobileapi/smsmobileapi-php with Composer. The public source code is available in the official SMSMobileAPI GitHub repository.
Yes. For native mobile SMS, the request is routed through the phone connected to your SMSMobileAPI account. Its SIM and existing number perform the send operation.
Yes. The sendWA parameter enables WhatsApp. Your WhatsApp connection must first be configured and active in the dashboard.
Yes. It is a normal Composer library with PSR-4 autoloading. Keep it behind server-side application code and adapt the client to the service structure of your framework.
The current PHP client focuses on sending SMS and WhatsApp messages, including optional scheduling. Use the REST API documentation for received messages, call activity and the platform’s other specialized endpoints.
Store it in protected server configuration or an environment variable. Never place it in browser JavaScript, a public repository, a screenshot or a distributable client application.
COMPOSER INSTALLED. MOBILE CONNECTED.
Start with one controlled recipient, inspect the response and activity, then connect the verified call to your real application event.
Tell us who we are speaking with. Your details stay attached to this private support conversation.