reshapify/sendseven-laravel
Larablocks Analysis
reshapify/sendseven-laravel works with Laravel 12 and 13 (latest release v0.5.0, Nov 29, 2026).
Recommendation checks
Use with careUse with care: meets 2 of 5 checks.
- Works with Laravel 13, the current version
- Released in the last 12 months (Nov 29, 2026)
- First released under 90 days ago
- 858 downloads a month (needs 10,000)
- 0 GitHub stars (needs 100)
State
Too new to judge- Last stable release: Nov 29, 2026.
- 8 releases in the last 12 months.
- First released: Oct 1, 2026.
- Monthly downloads: 858.
- 0 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Dec 2, 2026.
| Install | |
|---|---|
composer require reshapify/sendseven-laravel |
|
| Latest Version: | v0.5.0 |
| PHP: | ^8.3 |
| Laravel: | 12 · 13 |
| License: | MIT |
| Last Updated: | Nov 29, 2026 |
| Links: | GitHub · Packagist |
SendSeven for Laravel
Unofficial. Not affiliated with or endorsed by SendSeven GmbH or Laravel Holdings.
Laravel integration for reshapify/sendseven, the typed SDK for the SendSeven messaging API (WhatsApp, SMS, email, Telegram, Messenger, Instagram, RCS, browser push).
- Configured client: the
SendSevenfacade, or injectReshapify\SendSeven\Client. Full multi-tenant helpers:SendSeven::forToken(),SendSeven::forTenant(),SendSeven::fast(). - Webhooks in one line:
Route::sendSevenWebhooks()answers SendSeven's verification challenge, verifies signatures, deduplicates per tenant/route, supports queued or sync ingestion, and dispatches typed Laravel events. - All four SendSeven server protocols: standard webhooks (
Route::sendSevenWebhooks()), Conversational Agent Context Endpoints (Route::sendSevenContextEndpoint()), WhatsApp Flow Custom Webhook Data Sources (Route::sendSevenFlowDataSource()), Live Chat Widget Identity (SendSeven::widgetIdentity()), and OAuth 2.0 + PKCE (SendSeven::oauth()). - Laravel Notifications: send text, buttons, media, and WhatsApp templates via the
sendsevennotification channel (SendSevenChannel/SendSevenMessage). - Customer onboarding:
SendSeven::connect()sends customers to SendSeven's connect page (WhatsApp Embedded Signup, Instagram, Messenger, Telegram…) and tells you when their channel arrives. - One rate limit for every process: web requests, queue workers and the scheduler share the token's 100-requests-a-minute budget through your cache (with an atomic sliding-window Lua script on Redis).
- Operational commands:
sendseven:doctor,sendseven:usage,sendseven:sms-prices,sendseven:webhooks:sync,sendseven:webhooks:replay-failed, and full endpoint management +php artisan aboutintegration. - Fakes for the API (covering default,
fast(),forToken(),forTenant()), signed webhook deliveries, context endpoints, and WhatsApp Flow data sources.
Install
composer require reshapify/sendseven-laravel
php artisan vendor:publish --tag=sendseven-config # optional
Composer may ask whether to trust php-http/discovery, a plugin of the core SDK. Laravel already ships an HTTP client, so answering "no" is fine.
SENDSEVEN_API_TOKEN=s7_api_...
Locally, SENDSEVEN_DRIVER=log sends nothing and needs no token: requests are written to the log (with secrets and PII redacted) and answered with schema-compatible placeholders, like Laravel's log mail driver.
Send
use Reshapify\SendSeven\Laravel\Facades\SendSeven;
SendSeven::messages()->send(to: '+4915112345678', channelId: $channelId, text: 'Your order has shipped.');
To send to a phone number, look its contact up once; the ID is cached per client fingerprint for an hour (contacts.cache_for_seconds), and can be evicted with SendSeven::forgetContact():
$contactId = SendSeven::contactIdForPhone('+4915112345678');
SendSeven::messages()->sendText(channelId: $channelId, text: 'Your order has shipped.', contactId: $contactId);
SendSeven::forgetContact('+4915112345678');
For messages someone is waiting on, such as a login code, SendSeven::fast() (or SendSeven::fast($token, $tenantId)) uses a 10-second timeout and no retries so web requests fail fast.
Every SendSeven endpoint is available; see the SDK docs. For a customer's own token use SendSeven::forToken($token) (never inherits global SENDSEVEN_TENANT_ID); for a sub-account with a partner token use SendSeven::forTenant($tenantId).
Laravel Notifications
use Illuminate\Notifications\Notification;
use Reshapify\SendSeven\Laravel\Notifications\SendSevenMessage;
final class OrderShipped extends Notification
{
public function via(object $notifiable): array
{
return ['sendseven'];
}
public function toSendSeven(object $notifiable): SendSevenMessage
{
return SendSevenMessage::text("Order #{$this->order->number} has shipped.")
->channel($this->order->channel_id);
}
}
Implement routeNotificationForSendSeven() on the notifiable returning a phone/email string or ['to' => ..., 'contact_id' => ..., 'channel_id' => ..., 'token' => ..., 'tenant_id' => ...]. SendSevenMessage::template(...) and SendSevenMessage::buttons(...) are also supported.
Receive webhooks
// routes/web.php (CSRF is skipped for this route; deliveries are signed instead)
Route::sendSevenWebhooks(); // POST /webhooks/sendseven, named sendseven.webhooks
To process webhooks asynchronously and always respond within SendSeven's 10-second delivery timeout, enable queued mode via SENDSEVEN_WEBHOOK_MODE=queued or per route:
Route::sendSevenWebhooks('webhooks/sendseven', queued: true);
php artisan sendseven:webhooks:register # creates the endpoint and prints SENDSEVEN_WEBHOOK_SECRET
php artisan sendseven:webhooks:sync # idempotently converge URL, events and active state on deploy
php artisan sendseven:doctor # confirms SendSeven verified it
Listen for the SDK's typed event classes:
use Reshapify\SendSeven\Webhooks\Events\MessageReceived;
final class StoreInboundMessage implements ShouldQueue
{
public function handle(MessageReceived $event): void
{
Inbox::store(from: $event->message->fromId, text: $event->message->text);
}
}
| Event | When |
|---|---|
Reshapify\SendSeven\Webhooks\Events\MessageReceived |
Someone messaged you |
…\MessageStatusUpdated |
Sent, delivered, read or failed (failed(), message->errorCode()) |
…\MessageReactionChanged, ChannelEvent, ContactEvent, ConversationEvent, WhatsAppFlowEvent, AttachmentSummarized, TagChanged, AgentGoalCompleted, CampaignEvent, EmailEvent, CommentEvent, PostEvent, LinkClicked, TeamChatMessageCreated, UnknownEvent |
The rest |
Reshapify\SendSeven\Laravel\Events\ChannelConnected |
A channel was created, e.g. through a connect link |
Reshapify\SendSeven\Laravel\Events\WebhookReceived |
Every delivery, with the route parameters |
Each event ID is deduplicated per route, route parameters and tenant ID (webhooks.deduplicate_for_seconds). In sync mode, an in-flight retry returns 503 while the first delivery is still running, and the completed marker is written only after listeners succeed.
An endpoint per customer? Put a parameter in the URL and resolve its secret (and optional static Authorization header):
Route::sendSevenWebhooks('webhooks/sendseven/{workspace}');
// AppServiceProvider::boot()
SendSeven::resolveWebhookSecretUsing(
fn (Request $request) => Workspace::find($request->route('workspace'))?->sendseven_webhook_secret,
);
SendSeven::resolveWebhookAuthorizationUsing(
fn (Request $request) => Workspace::find($request->route('workspace'))?->sendseven_webhook_auth,
);
Returning null answers 404 (including on verification challenges). To use your own controller instead, add the Reshapify\SendSeven\Laravel\Webhooks\VerifyWebhookSignature middleware and read the event with VerifyWebhookSignature::event($request).
Context endpoints, WhatsApp Flow data sources, widget identity & OAuth
// Conversational Agent Context Endpoint (verifies t=,v1= and enforces 16 KB response cap)
Route::sendSevenContextEndpoint('sendseven/context', fn (Request $request) => response()->json([
'plan' => 'pro',
]));
// WhatsApp Flow Custom Webhook Data Source (supports rotating t=,v1=new,v1=old)
Route::sendSevenFlowDataSource('sendseven/flow-data', function (Request $request) {
$exchange = VerifyFlowDataSourceSignature::payload($request);
return response()->json(['version' => $exchange->version, 'data' => ['status' => 'active']]);
});
// Live Chat Widget Identity Verification
$identity = SendSeven::widgetIdentity(userId: (string) $user->id, email: $user->email, name: $user->name);
// OAuth 2.0 ("Login with SendSeven") with PKCE S256
$pkce = \Reshapify\SendSeven\OAuth\PkcePair::generate();
$consentUrl = SendSeven::oauth()->authorizationUrl(state: $state, pkce: $pkce);
$tokens = SendSeven::oauth()->exchangeCode($code, $pkce->verifier);
Let customers connect their channels
use Reshapify\SendSeven\Enums\ChannelType;
use Reshapify\SendSeven\Onboarding\ConnectLink;
use Reshapify\SendSeven\Onboarding\WhatsAppMode;
public function store(Workspace $workspace)
{
$connection = SendSeven::connect(
ConnectLink::for(ChannelType::WhatsApp)
->modes(whatsapp: [WhatsAppMode::Classic])
->brandedAs(config('app.name'))
->redirectTo(route('channels.index'))
->singleUse(),
);
$workspace->update(['sendseven_connect_link_id' => $connection->link->id]);
return $connection; // a redirect; Inertia requests get a full-page visit
}
public function handle(ChannelConnected $event): void
{
Workspace::firstWhere('sendseven_connect_link_id', $event->connectLinkId())?->channels()->create([...]);
}
SendSeven runs Meta's Embedded Signup on its connect page; the SDK's onboarding guide covers modes, delegation and what customers see.
Rate limits
SendSeven allows 100 standard requests a minute per token. The add-on counts every request in your cache (set SENDSEVEN_RATE_LIMIT_STORE to redis for atomic sliding-window Lua enforcement), keeps 10% headroom, and pauses everyone when SendSeven answers 429. When the minute's budget is spent it throws RateLimitExceeded instead of sending.
In queued jobs, the ReleaseWhenRateLimited middleware puts the job back on the queue with bounded jitter until there is capacity (and rethrows when run via dispatchSync()):
use Reshapify\SendSeven\Laravel\Queue\ReleaseWhenRateLimited;
public function middleware(): array
{
return [new ReleaseWhenRateLimited];
}
Releases count as attempts, so give such jobs room with $tries or retryUntil().
With a partner token, rate_limit.tenant_share stops one busy tenant from starving the others.
Testing
SendSeven traffic goes through Laravel's HTTP client, so Http::fake(), Http::preventStrayRequests() and Http::assertSent() already cover it. Set SENDSEVEN_MAX_ATTEMPTS=1 in phpunit.xml so faked 5xx responses aren't retried.
Or script SendSeven's responses by endpoint:
$fake = SendSeven::fake([
'POST /messages' => ['id' => 'msg_1', 'direction' => 'outbound', 'message_type' => 'text', 'status' => 'queued', 'created_at' => '2026-10-01T09:00:00Z'],
]);
$this->post('/orders/1/ship');
$fake->assertSent('POST /messages', fn ($request) => $request->body['to'] === '+4915112345678');
SendSeven::fake() replaces the default client, SendSeven::fast(), SendSeven::forTenant(), and SendSeven::forToken().
Webhooks, context endpoints and flow data sources, signed as SendSeven signs them:
use Reshapify\SendSeven\Laravel\Testing\InteractsWithSendSevenWebhooks;
use Reshapify\SendSeven\Laravel\Testing\SendSevenWebhook;
$this->postSendSevenWebhook('/webhooks/sendseven', SendSevenWebhook::messageReceived('Hi'))->assertOk();
$this->postSendSevenContextEndpoint('/sendseven/context', ['contact_id' => 'ct_1'])->assertOk();
$this->postSendSevenFlowDataSource('/sendseven/flow-data', ['action' => 'ping'])->assertOk();
Commands
| Command | Does |
|---|---|
sendseven:doctor |
Checks the driver, token, plan, tenancy, webhook secret and endpoint, and cache stores |
sendseven:usage {--scope=} {--period=} |
Multi-tenant message usage and gross EUR cost (GET /billing/tenant-usage) |
sendseven:sms-prices {country?} |
SMS prices per segment |
Webhook endpoints. Leave out id to act on the endpoint behind Route::sendSevenWebhooks(). Destructive commands (rotate, delete) require an explicit ID unless a route URL matches.
| Command | When you need it |
|---|---|
sendseven:webhooks:register {url?} |
Setting up: creates the endpoint, prints its secret once, confirms verification |
sendseven:webhooks:sync {url?} |
On deploy: idempotently create, update events, re-verify and reactivate |
sendseven:webhooks:list |
Every endpoint with its state (active, suspended, unverified, inactive) and last error |
sendseven:webhooks:show {id?} |
One endpoint in detail |
sendseven:webhooks:deliveries {id?} {--status=failed} |
Messages aren't arriving: what SendSeven sent, and what your app answered |
sendseven:webhooks:retry {delivery} {id?} |
Re-send a single delivery your app missed |
sendseven:webhooks:replay-failed {id?} {--status=failed} {--dry-run} |
Batch-retry failed or dead-letter deliveries after an outage |
sendseven:webhooks:test {id?} |
Check the app accepts a delivery end to end |
sendseven:webhooks:activate {id?} |
After an outage: re-verify and reactivate a suspended or inactive endpoint |
sendseven:webhooks:update {id?} {--url=} {--event=*} {--name=} |
The URL or events changed |
sendseven:webhooks:rotate {id?} |
A secret leaked: new secret, printed once (asks first) |
sendseven:webhooks:delete {id?} |
Remove an endpoint (asks first) |
For AI agents
With Laravel Boost, php artisan boost:install picks up this package's guidelines and its sendseven-development skill. Without it, point your agent at vendor/reshapify/sendseven-laravel/resources/boost/skills/sendseven-development/SKILL.md.
Security
Report vulnerabilities privately; see SECURITY.md.
License
MIT. Unofficial: not affiliated with or endorsed by SendSeven GmbH or Laravel Holdings. "SendSeven" and "Laravel" are trademarks of their owners and are used only to say what this package works with.
Alternatives to reshapify/sendseven-laravel
Dual-backend Laravel package for WhatsApp: Meta Cloud API + bundled whatsapp-web...
The official PHP SDK for the Bird API: email, SMS, WhatsApp, verification, and R...
A Laravel package for integration with WATI WhatsApp service
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v0.5.0 | ^8.3 | ^12.0|| | MIT | |
| v0.4.1 | ^8.3 | ^12.0|| | MIT | |
| v0.4.0 | ^8.3 | ^12.0|| | MIT | |
| v0.3.0 | ^8.3 | ^12.0|| | MIT | |
| v0.2.1 | ^8.3 | ^12.0|| | MIT | |
| v0.2.0 | ^8.3 | ^12.0|| | MIT | |
| v0.1.1 | ^8.3 | ^12.0|| | MIT | |
| v0.1.0 | ^8.3 | ^12.0|| | MIT |