Search by

bymdigital / whatsapp-automation-india

bymdigitalofficial

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

Statistics

Installs: 1

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.0 2026-11-15 08:30 UTC

This package is not auto-updated.

Last update: 2026-11-15 08:34:46 UTC


README

GitHub Stars Official Platform Meta Graph API Coexistence Ready License: MIT

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?

๐Ÿ“„ License

This open-source project is licensed under the MIT License.