paolorox/ti-ext-whatsapp-selfhost 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

paolorox/ti-ext-whatsapp-selfhost

Composer 安装命令:

composer require paolorox/ti-ext-whatsapp-selfhost

包简介

WhatsApp integration for TastyIgniter via OpenWA self-hosted API. Send automated WhatsApp messages on order and reservation events.

README 文档

README

Total Downloads Latest Stable Version License

Introduction

The WhatsApp Integration extension for TastyIgniter allows you to send automated WhatsApp messages on critical events like order placements, status updates, and reservations.

Tip

Don't want to host your own OpenWA server?
We offer a Premium Hosted Version of this extension on the TastyIgniter Marketplace! It comes pre-configured to run on our high-availability API servers, so you don't have to install, host, or maintain your own OpenWA backend. Simply purchase a subscription, scan your QR code, and start sending messages instantly.

By integrating with a self-hosted OpenWA (WhatsApp Automate) server API, this free version ensures quick, cost-effective, and fully customizable messaging directly to your customers' and staff's mobile phones.

Features

  • Event-Driven Automations: Fully integrated with TastyIgniter's core Automation rules. Trigger WhatsApp notifications on order events, reservation events, status changes, and more.
  • Dynamic Message Templates: Compose messages using a standard template format containing rich, live details such as customer names, order totals, order items, and URLs.
  • Admin Dashboard: Scan QR codes to start your session, check real-time connection logs, and run diagnostics directly from the TastyIgniter backend.
  • Message Logs: A built-in log viewer records all sent, pending, or failed WhatsApp messages with details to trace API response statuses.
  • Flexible Recipients: Send notifications to customers, specific store locations, restaurant administrators, or custom phone numbers.

Requirements

Ensure your setup meets the following requirements:

  • TastyIgniter: ^4.0
  • Automation Extension (tastyigniter/ti-ext-automation): ^4.0
  • A running, self-hosted instance of the OpenWA API.

Installation

You can install this extension via Composer:

composer require paolorox/ti-ext-whatsapp-selfhost

Alternatively, you can upload the files to your extension folder (extensions/paolorox/whatsapp) and run migrations:

php artisan igniter:up

Configuration

1. Configure Connection Settings

Go to System > Settings > WhatsApp Settings in the TastyIgniter admin panel and configure:

  • API URL: Your self-hosted OpenWA server URL (e.g. http://your-server-ip:2785/api).
  • API Key: The authentication key set up in your OpenWA configuration.
  • Default Country Code: The default international country prefix (e.g., 39 for Italy) to use when phone numbers do not include a country code.
  • Enable WhatsApp: Toggle to enable/disable message sending globally.

2. Session Activation & QR Code Scan

Go to Tools > WhatsApp (the WhatsApp Dashboard):

  1. Click Create Session (using a session ID matching your configuration).
  2. Click Start Session and wait a moment for the status to change.
  3. Click Show QR Code and scan the QR code using your WhatsApp mobile app to authorize the connection.
  4. You can use the Send Test Message feature on the dashboard to test the configuration.

Usage in Automation Rules

This extension registers a new action called Send WhatsApp Message in TastyIgniter's Automation module:

  1. Navigate to Tools > Automation and create or edit a Rule (e.g., Order Created or Reservation Confirmed).
  2. Under the Actions tab, click Add action and select Send WhatsApp Message.
  3. Choose who to send the message to (Customer, Restaurant, Location, or Custom Number).
  4. Draft your message in the Message Template text area.

Available Template Variables

Depending on the event triggering the action, you can use the following variables:

  • {{customer_name}} - Customer full name
  • {{order_id}} / {{reservation_id}} - Unique identifier
  • {{order_total}} - Order total amount formatted
  • {{order_items}} - Summary of items in the order
  • {{order_type}} - Delivery, Pick-up, etc.
  • {{order_date}} & {{order_time}} - Date and time of order/delivery
  • {{order_address}} - Delivery address
  • {{location_name}} - Restaurant location name
  • {{order_view_url}} - Link to view the order online

Support & Contributing

If you encounter any issues or want to contribute to this extension:

License

This extension is open-sourced software licensed under the MIT license.

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-06-27

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固