承接 tourze/wechat-mini-program-plugin-bundle 相关项目开发

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

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

tourze/wechat-mini-program-plugin-bundle

最新稳定版本:0.1.0

Composer 安装命令:

composer require tourze/wechat-mini-program-plugin-bundle

包简介

微信小程序插件

README 文档

README

English | 中文

A Symfony bundle for WeChat Mini Program plugin request signature verification.

Installation

Install the package via Composer:

composer require tourze/wechat-mini-program-plugin-bundle

Quick Start

  1. Add the bundle to your config/bundles.php:
<?php

return [
    // ... other bundles
    WechatMiniProgramPluginBundle\WechatMiniProgramPluginBundle::class => ['all' => true],
];
  1. The bundle will automatically register the HostSignCheckSubscriber to verify WeChat Mini Program plugin requests.

Features

  • Request Signature Verification: Automatically validates X-WECHAT-HOSTSIGN header
  • AppID Extraction: Extracts AppID from referrer URL
  • Security: Ensures request authenticity using SHA1 signature verification
  • Logging: Comprehensive logging for debugging and monitoring

Usage

The bundle automatically handles WeChat Mini Program plugin request verification through the HostSignCheckSubscriber. When a request contains the X-WECHAT-HOSTSIGN header, the subscriber will:

  1. Extract the signature data from the header
  2. Parse the AppID from the referrer URL
  3. Verify the signature using the configured plugin token
  4. Throw an exception if the signature is invalid

Example Request Headers

X-WECHAT-HOSTSIGN: {"noncestr":"RANDOM_STRING", "timestamp":"1234567890", "signature":"SHA1_SIGNATURE"}
Referrer: https://servicewechat.com/wx1234567890abcdef/1/page-frame.html

Configuration

The bundle requires the tourze/wechat-mini-program-bundle package to be properly configured with WeChat Mini Program accounts and plugin tokens.

License

This project is licensed under the MIT License - see the LICENSE file for details.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-11-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固