承接 rcsil/whatsapp-business 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

rcsil/whatsapp-business

Composer 安装命令:

composer require rcsil/whatsapp-business

包简介

Laravel package for Meta WhatsApp Business Platform Cloud API with Coexistence support.

README 文档

README

Laravel package for the Meta WhatsApp Business Platform Cloud API, with a first-class webhook implementation and database structures prepared for future chat-style views.

This package is in early development. The current implementation focuses on receiving, validating and storing WhatsApp Business webhooks from Meta.

Features

  • Webhook verification endpoint for Meta.
  • Signature validation with X-Hub-Signature-256.
  • Raw webhook event storage for auditing and replay/debugging.
  • Normalized contact, conversation, message and status persistence.
  • Configurable routes, middleware, database connection and table names.
  • Migration stubs ready to publish into a Laravel application.
  • Initial structure for Coexistence scenarios, including inbound messages and echoed/manual app activity when Meta sends it through webhooks.

Requirements

  • PHP 8.0 or higher.
  • Laravel components 11.x, 12.x or 13.x.
  • A Meta app configured for WhatsApp Business Platform webhooks.

Installation

Install the package with Composer:

composer require laravel/whatsapp-business

Publish the configuration file:

php artisan vendor:publish --tag=whatsapp-business-config

Publish and run the migrations:

php artisan vendor:publish --tag=whatsapp-business-migrations
php artisan migrate

Configuration

Add the relevant environment variables to your application:

WHATSAPP_BUSINESS_GRAPH_VERSION=v23.0
WHATSAPP_BUSINESS_ACCESS_TOKEN=
WHATSAPP_BUSINESS_PHONE_NUMBER_ID=
WHATSAPP_BUSINESS_ACCOUNT_ID=
WHATSAPP_BUSINESS_APP_SECRET=

WHATSAPP_BUSINESS_WEBHOOK_ENABLED=true
WHATSAPP_BUSINESS_WEBHOOK_VERIFY_TOKEN=
WHATSAPP_BUSINESS_WEBHOOK_VERIFY_SIGNATURE=true
WHATSAPP_BUSINESS_STORE_WEBHOOK_EVENTS=true

WHATSAPP_BUSINESS_ROUTES_ENABLED=true
WHATSAPP_BUSINESS_ROUTE_PREFIX=whatsapp-business
WHATSAPP_BUSINESS_DB_CONNECTION=

By default, the webhook endpoint is:

GET  /whatsapp-business/webhook
POST /whatsapp-business/webhook

Use the GET URL in Meta's webhook configuration. The package validates hub.mode, hub.verify_token and returns hub.challenge when the verification token matches.

Meta webhook POST requests are accepted only when the request signature matches the configured app secret, unless signature verification is explicitly disabled.

Stored Data

The webhook handler stores the original Meta payload in whatsapp_business_webhook_events. It also extracts data into normalized tables:

  • whatsapp_business_contacts
  • whatsapp_business_conversations
  • whatsapp_business_messages
  • whatsapp_business_message_statuses

This keeps the complete event payload available while also making it practical to build a chat view later by querying conversations and ordering messages by occurred_at.

Routes

Routes are enabled by default and use the api middleware group. You can change this in config/whatsapp-business.php:

'route' => [
    'enabled' => true,
    'prefix' => 'whatsapp-business',
    'middleware' => ['api'],
    'name' => 'whatsapp-business.',
],

Development

Install dependencies:

composer install

Useful commands:

composer test
composer analyse
composer format

The package currently has its first implementation layer in place. Tests and higher-level API clients are expected to evolve as the package grows.

Contributing

Contributions are welcome. Please read CONTRIBUTING.md before opening a pull request.

Security

If you discover a security vulnerability, please do not open a public issue. Follow the process in SECURITY.md.

License

This package is open source software licensed under the MIT license.

rcsil/whatsapp-business 适用场景与选型建议

rcsil/whatsapp-business 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 6 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 05 月 09 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「notifications」 「laravel」 「meta」 「whatsapp」 「webhooks」 「whatsapp-business」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 rcsil/whatsapp-business 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 rcsil/whatsapp-business 我们能提供哪些服务?
定制开发 / 二次开发

基于 rcsil/whatsapp-business 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-05-09