Download the PHP package tourze/wechat-official-account-mass-bundle without Composer

On this page you can find all versions of the php package tourze/wechat-official-account-mass-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package wechat-official-account-mass-bundle

WeChat Official Account Mass Bundle

中文

Latest Version Total Downloads License PHP Version

Build Status Code Coverage

A Symfony bundle for WeChat Official Account mass messaging functionality, supporting scheduled broadcasts to all users, specific user groups by tag, or individual users by OpenID.

Table of Contents

Features

Installation

Quick Start

1. Enable the Bundle

Register the bundle in your config/bundles.php:

2. Configure Database

Update your database schema to create the required tables:

3. Create a Mass Task

2. Send Messages via Command

The bundle provides a console command for sending mass messages:

This command will:

3. Automatic Sending with Cron

The SendMassCommand is configured to run automatically every minute using the cron job attribute:

Requirements

Configuration

This bundle requires the tourze/wechat-official-account-bundle to be properly configured with your WeChat Official Account credentials.

Required Environment Variables

Configure your WeChat credentials in .env:

API Reference

Entities

MassTask

Main entity for managing mass messaging tasks.

Properties:

Methods:

Enums

MassType

Supported message types:

Repositories

MassTaskRepository

Extends Doctrine's ServiceEntityRepository for custom query methods.

Request Classes

Commands

wechat:send-mass

Sends scheduled mass messages. Configured to run automatically every minute via cron.

Usage:

Process:

  1. Queries all valid, unsent tasks where send time has passed
  2. Marks tasks as sent to prevent duplicate processing
  3. Determines target audience (all users, by tag, or by OpenID)
  4. Sends messages via WeChat API
  5. Stores API response data (msg_task_id, msg_data_id)

Advanced Usage

Voice Message Example

Multi-account Support

Task Status Monitoring

Security

Data Protection

Best Practices

Vulnerability Reporting

If you discover a security vulnerability, please report it to the project maintainers following responsible disclosure practices.

Troubleshooting

Common Issues

  1. Messages not sending

    • Ensure cron job is running: Check system cron configuration
    • Verify task validity: Task must have valid = true
    • Check send time: Must be in the past for immediate sending
  2. API Errors

    • Verify WeChat credentials in configuration
    • Check account permissions for mass messaging
    • Ensure media IDs are valid and not expired
  3. Database Issues
    • Run doctrine:schema:validate to check entity mappings
    • Ensure database user has proper permissions

Contributing

Contributions are welcome! Please see CONTRIBUTING.md for details.

Development Setup

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Running Tests

License

The MIT License (MIT). Please see License File for more information.

References


All versions of wechat-official-account-mass-bundle with dependencies

PHP Build Version
Package Version
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package tourze/wechat-official-account-mass-bundle contains the following files

Loading the files please wait ...