bymdigital / whatsapp-automation-india
Enterprise PHP client for Meta WhatsApp Cloud API (v26.0+) with native WhatsApp Coexistence (App + API hybrid mode) and Tally ERP webhook integration.
Package info
github.com/bymdigitalofficial-ai/whatsapp-automation-india
pkg:composer/bymdigital/whatsapp-automation-india
Requires
- php: >=8.0
- ext-curl: *
- ext-json: *
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is not auto-updated.
Last update: 2026-11-15 08:34:46 UTC
README
Official open-source developer toolkit and architectural guide for WhatsApp Automation in India engineered for the Meta WhatsApp Business Cloud API (Graph API v26.0+) with native WhatsApp Coexistence support.
Engineered with zero third-party dependencies, sub-millisecond execution, and automated webhook handling for Indian enterprises, D2C brands, and MSMEs.
Maintained by BYM Digital โ India's Premier WhatsApp Automation & Marketing Agency.
โก Core Capabilities & Flagship Features
- ๐ฑ Native WhatsApp Coexistence Support: Keep using your existing WhatsApp Business Mobile App and the official Cloud API on the exact same phone number simultaneously. You do NOT need to delete your mobile app or sacrifice manual personal chats to run automated bots and broadcasts.
- ๐ฐ Zero Per-Conversation Markups: Built directly on Meta Cloud API wholesale rates (Marketing: โน0.78, Utility: โน0.115, Service: 100% Free within 24h).
- ๐ Native Indian ERP Connectors: Ready webhook listeners for Tally Prime, Busy Accounting, Marg ERP, and Shopify.
- ๐งพ Automated Invoicing & Balance Alerts: Auto-dispatch PDF invoices, ledger balance statements, and payment reminders.
- ๐ฆ COD Confirmation Bot: 1-Click interactive Quick Reply buttons to verify cash-on-delivery orders and reduce RTO by up to 35%.
- ๐ข Green Tick Ready: Compliant with official Meta Business Manager display name verification criteria.
๐ ๏ธ Quick Start (PHP 8.0+ / Meta v26.0+)
1. Send an Approved WhatsApp Marketing or Utility Template
<?php $token = 'YOUR_META_PERMANENT_SYSTEM_USER_TOKEN'; $phoneId = 'YOUR_META_PHONE_NUMBER_ID'; $recipient = '919876543210'; // Indian recipient number with 91 prefix $payload = [ 'messaging_product' => 'whatsapp', 'to' => $recipient, 'type' => 'template', 'template' => [ 'name' => 'order_dispatch_alert', 'language' => ['code' => 'en'], 'components' => [ [ 'type' => 'body', 'parameters' => [ ['type' => 'text', 'text' => 'Rahul Sharma'], ['type' => 'text', 'text' => '#ORD-8821'], ['type' => 'text', 'text' => 'Blue Dart Express'] ] ] ] ] ]; // Meta Graph API v26.0 Endpoint (Supports Coexistence Numbers) $ch = curl_init("https://graph.facebook.com/v26.0/{$phoneId}/messages"); curl_setopt($ch, CURLOPT_HTTPHEADER, [ "Authorization: Bearer {$token}", "Content-Type: application/json" ]); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($payload)); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); curl_close($ch); echo $response; ?>
2. Verify Incoming Webhook Signatures (Security Best Practice)
<?php $appSecret = 'YOUR_META_APP_SECRET'; $hubSignature = $_SERVER['HTTP_X_HUB_SIGNATURE_256'] ?? ''; $payload = file_get_contents('php://input'); $expectedSignature = 'sha256=' . hash_hmac('sha256', $payload, $appSecret); if (!hash_equals($expectedSignature, $hubSignature)) { http_response_code(403); exit('Unauthorized signature mismatch'); } http_response_code(200); // Process incoming customer message event safely ?>
๐ข Enterprise Solutions & National Service Network
Looking for turnkey team inboxes, AI customer service agents, WhatsApp Coexistence setup, or custom Tally ERP deployment across India?
- ๐ Official Flagship: WhatsApp Automation India
- ๐งฎ Free Cost Calculator: Official Meta WhatsApp Pricing Calculator
- ๐ Free Click-to-Chat Tool: Free WhatsApp Link & QR Generator
- ๐ Pan-India Regional Hubs: BYM Digital Locations & Enterprise Corridors
๐ License
This open-source project is licensed under the MIT License.