Download the PHP package tourze/wechat-mini-program-bundle without Composer

On this page you can find all versions of the php package tourze/wechat-mini-program-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-mini-program-bundle

Wechat Mini Program Bundle

中文

PHP Version [Latest Version] (https://packagist.org/packages/tourze/wechat-mini-program-bundle) [Total Downloads] (https://packagist.org/packages/tourze/wechat-mini-program-bundle) [License] (https://packagist.org/packages/tourze/wechat-mini-program-bundle) [Build Status] (https://github.com/tourze/php-monorepo/actions) [Code Coverage] (https://codecov.io/gh/tourze/php-monorepo)

A Symfony bundle for integrating WeChat Mini Program functionality into your application.

Table of Contents

Features

Installation

Configuration

Add the bundle to your bundles.php:

Console Commands

Get Access Token

Retrieve access tokens for all valid Mini Program accounts:

This command is designed to run as a cron job every 20 minutes to pre-fetch access tokens, reducing frontend wait times.

Query RID Information

Query RID information for debugging purposes:

Reset API Frequency

Reset API call frequency using AppSecret:

Usage

Basic Client Usage

Account Management

Launch Options

Use the LaunchOptionsAware trait in your entities to handle Mini Program launch options:

Services

Client

The main API client for making requests to WeChat Mini Program APIs:

Account Service

Service for managing Mini Program accounts:

Launch Option Helper

Helper service for processing Mini Program launch options:

Entities

Account

Represents a WeChat Mini Program account with:

Exceptions

Advanced Usage

Custom API Requests

Create custom API requests by implementing the RequestInterface:

Environment Configuration

Configure different API endpoints for different environments:

Error Handling

The bundle provides comprehensive error handling:

Security

Access Token Security

Best Practices

Reporting Security Issues

If you discover a security vulnerability, please send an email to [email protected]. All security vulnerabilities will be promptly addressed.

Dependencies

This bundle requires the following packages:

For a complete list of dependencies, see the composer.json file.

Contributing

  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

License

This bundle is licensed under the MIT License. See the LICENSE file for details.

Documentation

For more information about WeChat Mini Program development, refer to the official documentation.


All versions of wechat-mini-program-bundle with dependencies

PHP Build Version
Package Version
Requires ext-json Version *
ext-libxml Version *
ext-openssl Version *
ext-simplexml Version *
doctrine/data-fixtures Version ^2.0
doctrine/dbal Version ^4.0
doctrine/doctrine-bundle Version ^2.13
doctrine/doctrine-fixtures-bundle Version ^4.0
doctrine/orm Version ^3.0
doctrine/persistence Version ^4.1
easycorp/easyadmin-bundle Version ^4
knplabs/knp-menu Version ^3.7
monolog/monolog Version ^3.1
nesbot/carbon Version ^2.72 || ^3
psr/link Version ^1.1|^2.0
psr/log Version ^3|^2|^1
symfony/cache-contracts Version ^3
symfony/config Version ^7.3
symfony/console Version ^7.3
symfony/dependency-injection Version ^7.3
symfony/doctrine-bridge Version ^7.3
symfony/event-dispatcher Version ^7.3
symfony/framework-bundle Version ^7.4
symfony/http-client-contracts Version ^3.6
symfony/http-foundation Version ^7.4
symfony/http-kernel Version ^7.3
symfony/lock Version ^7.3
symfony/property-access Version ^7.3
symfony/security-core Version ^7.3
symfony/yaml Version ^7.3
tourze/arrayable Version 1.*
tourze/backtrace-helper Version 1.*
tourze/bundle-dependency Version 1.*
tourze/doctrine-async-insert-bundle Version 1.0.*
tourze/doctrine-ip-bundle Version 1.1.*
tourze/doctrine-resolve-target-entity-bundle Version 1.*
tourze/doctrine-timestamp-bundle Version 1.1.*
tourze/doctrine-track-bundle Version 1.1.*
tourze/doctrine-user-bundle Version 1.0.*
tourze/easy-admin-menu-bundle Version 1.0.*
tourze/enum-extra Version 1.0.*
tourze/http-client-bundle Version 1.1.*
tourze/json-rpc-core Version 2.0.*
tourze/json-rpc-log-bundle Version 2.0.*
tourze/symfony-cron-job-bundle Version 1.1.*
tourze/symfony-dependency-service-loader Version 1.0.*
tourze/wechat-mini-program-appid-contracts Version 1.0.*
yiisoft/arrays Version ^3
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-mini-program-bundle contains the following files

Loading the files please wait ...