Send WhatsApp Messages from Laravel
Integrate the WhatsApp Business API with your Laravel application using the official Zaptilo PHP SDK. Built for Indian SaaS, e-commerce, and fintech teams who need reliable WhatsApp delivery without monthly subscription costs. Install via Composer, drop your API token into .env, and start sending in minutes.
Why use Zaptilo with Laravel?
- Native Laravel integration via Composer — no manual HTTP code
- Pay-as-you-go WhatsApp Business API pricing in INR — from ₹0.04/message at volume
- No setup fee, no monthly subscription — ideal for Indian startups
- Send text, media, and approved template messages
- Works with Laravel Jobs, Queues, and Notifications out of the box
- India-based support and GST-compliant invoicing
Step 1: Install the Composer package
composer require zaptilo/whatsappStep 2: Configure your .env
ZAPTILO_API_TOKEN=your_token_here
ZAPTILO_BASE_URL=https://web.zaptilo.aiGet your API token from web.zaptilo.ai → Developer Tools → Access Tokens.
Step 3: Create a service class
<?php
namespace App\Services;
use Zaptilo\WhatsApp\Zaptilo;
class WhatsAppService
{
private Zaptilo $client;
public function __construct()
{
$this->client = new Zaptilo(
env('ZAPTILO_API_TOKEN'),
env('ZAPTILO_BASE_URL')
);
}
public function sendOrderConfirmation(string $phone, string $name, string $orderId): array
{
return $this->client->sendTemplate(
phone: $phone,
templateName: 'order_confirmation',
language: 'en',
bodyValues: [$name, $orderId]
);
}
public function sendOTP(string $phone, string $code): array
{
return $this->client->sendTemplate(
phone: $phone,
templateName: 'otp_login',
language: 'en',
bodyValues: [$code]
);
}
}Step 4: Send from any controller
Route::post('/order-placed', function (Request $request) {
app(WhatsAppService::class)->sendOrderConfirmation(
'91' . $request->customer_phone,
$request->customer_name,
$request->order_id
);
return response()->json(['ok' => true]);
});Step 5: Use Laravel Queues for high volume
For OTP delivery, marketing campaigns, or bulk order updates, dispatch sends through Laravel Queues so request threads stay fast:
php artisan make:job SendWhatsAppNotification
// app/Jobs/SendWhatsAppNotification.php
public function handle(WhatsAppService $whatsApp): void
{
$whatsApp->sendOrderConfirmation($this->phone, $this->name, $this->orderId);
}
// Dispatch from controller
SendWhatsAppNotification::dispatch($phone, $name, $orderId);Common use cases for Indian businesses
E-commerce order updates
Send order confirmations, dispatch alerts, and delivery OTPs from Laravel + Razorpay flows.
Fintech OTP delivery
Replace SMS OTPs with WhatsApp OTPs — higher delivery rates and lower cost in India.
EdTech reminders
Class schedules, fee payment reminders, exam alerts straight from your Laravel admin.
Logistics & delivery
Live shipment tracking and ETA updates triggered from Laravel webhooks.
Healthcare appointments
Appointment reminders 24 hours before via approved templates.
Real estate
Property visit confirmations, broker notifications, and document sharing.
Frequently asked questions
How do I install the Zaptilo PHP SDK in Laravel?
Run `composer require zaptilo/whatsapp` in your Laravel project, then add ZAPTILO_API_TOKEN and ZAPTILO_BASE_URL to your .env file. Inject the Zaptilo client into any service or controller and call sendMessage / sendTemplate.
Does the Zaptilo Laravel SDK work with Laravel 9, 10, and 11?
Yes. The Zaptilo PHP SDK supports Laravel 9, 10, and 11 out of the box, and requires PHP 8.1 or higher. It also works with bare PHP and Symfony projects.
How do I send WhatsApp asynchronously from Laravel?
Wrap your WhatsApp sends in a Laravel Job (php artisan make:job SendWhatsAppNotification), inject the Zaptilo service in the handle method, and dispatch the job from your controller. This keeps request threads fast even for OTP and bulk sends.
What is the cost of using Zaptilo with Laravel for Indian businesses?
Zaptilo charges per message starting from ₹0.04 at volume, billed in INR with a GST-compliant invoice. There is no monthly subscription, no setup fee, and no per-user fee — making it the most cost-effective WhatsApp Business API for Indian Laravel teams.
Send your first WhatsApp from Laravel today
Free signup. No subscription. Pay only for the messages you send. INR pricing, GST invoice, India-based support.
Get Started FreeSee also: Node.js · Python · Spring Boot