Hypersender

Messaging APIs

WhatsApp APISend and receive from your own numberSMS gateway appApproved on Google Play, Android 9 to 16OTP APICodes and WhatsApp sign-in links

Build with it

MCP serverWhatsApp and SMS from your AI assistantIntegrationsn8n, AI assistants and SDKsWhatsApp API pricingPlans, and per-message costs comparedDocsAPI reference and setup guides
SDKsLaravelNode.jsPythonGon8n

WhatsApp

CRM integrationPayment remindersOrder updatesWhatsApp OTPIncoming message webhooksWhatsApp AI chatbotWhatsApp automationMessaging from Laravel

SMS

Appointment remindersSMS OTPFilter and tag SMSSMS forwardingSMS gateway appAndroid SMS gateway
All use cases
WhatsApp link generatorA short chat link with a ready message, a QR code with your logo and a button for your website.WhatsApp message templatesReady messages for orders, appointments and payments, with a builder that checks them against Meta's rules.WhatsApp text formatterBold, italic, strikethrough, lists and quotes, with keyboard shortcuts and a live iPhone preview.SMS character counterCharacters, SMS parts and GSM-7 or Unicode, plus the characters that make a message longer.Phone validatorCheck if a number is valid, see its country and line type, and copy it in E.164 or WhatsApp format. Works on lists too.Name decorationStylish versions of a name in English or Arabic for PUBG, Free Fire, Instagram and TikTok.
All free tools

Company

BlogGuides, tutorials and comparisonsAbout HypersenderWho we are and how we workFAQsShort answers to common questions

Community

Latest postNovember 28, 2026How to Send Bulk Messages on WhatsApp Without Getting BannedHow to send bulk messages on WhatsApp with broadcast lists, paid broadcasts or an API, and the opt-in and pacing rules that keep your number safe.Read the post
PricingDocs
Sign InGet Started
Hypersender

Product

  • Features
  • Use cases
  • MCP server
  • Pricing
  • WhatsApp API pricing
  • SDKs
  • Integrations
  • Docs

Free tools

  • WhatsApp link generator
  • WhatsApp message templates
  • WhatsApp text formatter
  • SMS character counter
  • Phone validator
  • Name decoration
  • All tools

Resources

  • About Hypersender
  • FAQ
  • Blog
  • Discord
  • WhatsApp

Legal

  • Terms and Conditions
  • Privacy Policy
Featured onFeatured on LaunchAFFeatured on LaunchAFFeatured on Twelve ToolsFeatured on Twelve Tools

© 2026 Hypersender. All rights reserved.

GET IT ONGoogle Play
HypersenderHypersenderHypersenderHypersenderHypersender
All articles

Developer guides

Laravel WhatsApp Package for WhatsApp, SMS and OTP

A Laravel WhatsApp package that also sends SMS and OTP codes: one Composer install, a facade, typed webhook events, and queued webhook handling.

Hypersender·Updated November 27, 2026·2 min read
Laravel WhatsApp package by HypersenderLaravel WhatsApp package by Hypersender
On this page
  1. Install the package
  2. WhatsApp
  3. SMS from your Android phone
  4. OTP codes and WhatsApp sign-in links
  5. Webhooks as Laravel events
  6. Configuration

On this page

  1. Install the package
  2. WhatsApp
  3. SMS from your Android phone
  4. OTP codes and WhatsApp sign-in links
  5. Webhooks as Laravel events
  6. Configuration

The Hypersender Laravel WhatsApp package sends WhatsApp messages, SMS from your own Android phone, and OTP codes from one facade. It registers webhook routes, verifies the secret, and fires a Laravel event for each webhook type, so incoming messages reach your listeners like any other event.

It needs Laravel 10, 11 or 12 and PHP 8.2 or newer. For a step-by-step WhatsApp walkthrough, read how to send WhatsApp messages in Laravel.

Install the package

bash
composer require hypersender/hypersender-laravel
php artisan vendor:publish --tag=hypersender-config

Each channel has its own keys in .env. Add only the ones you use:

env
HYPERSENDER_WHATSAPP_API_KEY=
HYPERSENDER_WHATSAPP_INSTANCE_ID=
 
HYPERSENDER_SMS_API_KEY=
HYPERSENDER_SMS_INSTANCE_ID=
 
HYPERSENDER_OTP_API_KEY=
HYPERSENDER_OTP_INSTANCE_ID=

WhatsApp

php
use Hypersender\Hypersender;
 
Hypersender::whatsapp()->safeSendTextMessage(
    chatId: '201234567890@c.us',
    text: 'Your order #1042 has shipped.',
)->throw();

safeSendTextMessage waits a few seconds based on the text length and shows typing first. The same client sends images, files, videos, voice notes, polls, locations, contact cards and links with a custom preview. Uploads take an Illuminate\Http\UploadedFile:

php
Hypersender::whatsapp()->sendFile(
    chatId: '201234567890@c.us',
    file: $request->file('invoice'),
    caption: 'Your invoice',
);

Every request is queued by the API and returns a queued_request_uuid. Check the result with getQueuedRequest($uuid), or wait for the MessageAck webhook. The send messages reference lists every method.

SMS from your Android phone

The SMS client sends from the SIM of an Android phone running the Hypersender SMS app. requestId makes retries safe: the same ID never sends twice.

php
use Illuminate\Support\Str;
 
Hypersender::sms()->sendMessage(
    content: 'Reminder: your appointment is tomorrow at 10:00.',
    requestId: (string) Str::uuid(),
    to: '+201234567890',
    scheduleSendAt: '2026-12-15 09:00:00',
);

See SMS usage for message lists, threads and heartbeats.

OTP codes and WhatsApp sign-in links

php
$otp = Hypersender::otp();
 
$otp->requestCode(
    chatId: '201234567890@c.us',
    length: 6,
    useNumber: true,
    useLetter: false,
    allCapital: false,
    name: 'Acme',
    expires: 300,
);
 
$valid = $otp->validateCode(chatId: '201234567890@c.us', code: $request->input('code'));

generateLink creates a WhatsApp sign-in link instead: the user sends a prefilled message, and your success or failure callback gets the result. The WhatsApp OTP page explains when to use each.

Webhooks as Laravel events

The package registers POST /whatsapp/webhook and POST /sms/webhook, checks the secret you set in .env, and dispatches a queued job that fires one event per webhook type.

php
use Hypersender\Events\Whatsapp\MessageAny;
use Hypersender\Events\Sms\MessagePhoneReceived;
use Illuminate\Support\Facades\Event;
 
Event::listen(MessageAny::class, fn (MessageAny $event) => logger()->info('WhatsApp in', $event->payload));
Event::listen(MessagePhoneReceived::class, fn (MessagePhoneReceived $event) => logger()->info('SMS in', $event->payload));

WhatsApp events include MessageAny, MessageAck, MessageReaction, MessageRevoked and PollVote. SMS events cover received, sent and delivered messages, failures, and phone heartbeats such as PhoneHeartbeatOffline.

To handle webhooks your own way, point HYPERSENDER_WHATSAPP_WEBHOOK_JOB at a job that implements Hypersender\Contracts\WhatsappWebhookJobInterface. The job names its queue from HYPERSENDER_WHATSAPP_QUEUE, so run a worker for it.

Configuration

SettingDefault
HYPERSENDER_WHATSAPP_WEBHOOK_ROUTEwhatsapp/webhook
HYPERSENDER_WHATSAPP_WEBHOOK_AUTHORIZATION_SECRETnone, set it
HYPERSENDER_WHATSAPP_QUEUEdefault
HYPERSENDER_SMS_WEBHOOK_ROUTEsms/webhook
HYPERSENDER_SMS_BASE_URLhttps://app.hypersender.com/api/sms/v1
HYPERSENDER_OTP_BASE_URLhttps://app.hypersender.com/api/otp/v2

Package versions up to v2.1.2 default the SMS base URL to /api/sms/v2, which doesn't exist. On those versions, set HYPERSENDER_SMS_BASE_URL as shown above.

The source is on GitHub, and the full reference starts at the installation guide. Create a Hypersender account to get your keys.

Keep reading

How to send bulk messages on WhatsApp without getting bannedHow to send bulk messages on WhatsApp without getting banned

Guides

How to Send Bulk Messages on WhatsApp Without Getting Banned

How to send bulk messages on WhatsApp with broadcast lists, paid broadcasts or an API, and the opt-in and pacing rules that keep your number safe.

November 28, 2026·2 min read

By Hypersender

Introduction message in WhatsApp: examples for businessIntroduction message in WhatsApp: examples for business

Guides

Introduction Message in WhatsApp: 15 Examples for Business

Introduction message in WhatsApp examples for businesses: greetings, welcome messages and first messages to new leads, and how to set them up.

November 28, 2026·2 min read

By Hypersender

How to schedule messages on WhatsAppHow to schedule messages on WhatsApp

Guides

How to Schedule Messages on WhatsApp: Phone, Business, API

How to schedule messages on WhatsApp: the new built-in scheduler, what the Business app can do, iPhone Shortcuts, and sending on a schedule with an API.

November 28, 2026·2 min read

By Hypersender

Start Sending WhatsApp and SMS Messages Today

Start a free trial: 14 days for WhatsApp and 28 days for SMS, with up to 100 messages a day.

Contact SalesGet Started