Zindua
Back to blog
PHPJuly 08, 202610 min read

Install the PHP SDK and send OTP in Laravel, Symfony, or WordPress custom code

A practical PHP playbook: install zindua/sdk, configure env, and ship email + WhatsApp OTP with one client.

Install the PHP SDK and send OTP in Laravel, Symfony, or WordPress custom code

Install and configure

The package stays lightweight and avoids extra HTTP dependencies. Installation is one composer command and configuration is env-first.

Keep ZINDUA_API_KEY on the server only. Never expose it in browser JavaScript or mobile clients.

composer require zindua/sdk

# .env
ZINDUA_API_KEY=znd_test_your_key_here

Use one client across channels

Email and WhatsApp use the same send() method. Channel selection remains explicit but API shape remains stable.

Typed local validation catches common mistakes before network calls, reducing noise in production logs.

Framework integration patterns

In Laravel, register the Client as a singleton. In Symfony, wire it as a service. In WordPress custom integrations, bootstrap it from plugin or mu-plugin context.

When teams share templates across stacks, this parity with Node SDK reduces drift and keeps template governance simpler.

Quick start from this article

Install PHP package

Add the official SDK from Packagist.

composer require zindua/sdk

Read PHP docs

Find full snippets and API methods.

Open guide

Validate with CLI

Check project and templates before release.

npx @zindua/cli@latest templates list

Related articles