Download the PHP package tourze/wechat-mini-program-short-link-bundle without Composer
On this page you can find all versions of the php package tourze/wechat-mini-program-short-link-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tourze/wechat-mini-program-short-link-bundle
More information about tourze/wechat-mini-program-short-link-bundle
Files in tourze/wechat-mini-program-short-link-bundle
Package wechat-mini-program-short-link-bundle
Short Description 小程序 Short Link
License MIT
Informations about the package wechat-mini-program-short-link-bundle
WeChat Mini Program Short Link Bundle
中文
A Symfony bundle for generating WeChat Mini Program short links.
Features
- Generate temporary or permanent short links for WeChat Mini Programs
- Symfony integration with dependency injection
- Comprehensive test coverage
- PSR-4 autoloading support
- Simple and intuitive API
Installation
Quick Start
Basic Usage
Configuration
This bundle requires the tourze/wechat-mini-program-bundle package and uses its account configuration.
Request Parameters
pageUrl(string): The page URL within the mini programpageTitle(string): The title for the short linkpermanent(bool): Whether the short link is permanent (default: false)
API Endpoint
The bundle generates requests for the WeChat API endpoint /wxa/genwxashortlink.
Advanced Usage
Custom Configuration
This bundle integrates with tourze/wechat-mini-program-bundle for account management.
Ensure you have properly configured your WeChat Mini Program accounts.
Error Handling
Best Practices
- Use meaningful page titles that describe the destination
- Consider using permanent links sparingly as they cannot be deleted
- Validate page URLs before creating short links
- Implement proper error handling for API failures
Security
When using this bundle, please consider the following security aspects:
- Input Validation: Always validate and sanitize page URLs and titles before creating short links
- Access Control: Implement proper authorization checks before allowing short link creation
- Rate Limiting: Consider implementing rate limiting to prevent abuse of the short link generation API
- Audit Logging: Log short link creation activities for security monitoring
Requirements
- PHP 8.1+
- Symfony 6.4+
- tourze/wechat-mini-program-bundle
License
This bundle is released under the MIT License. See the bundled LICENSE file for details.
All versions of wechat-mini-program-short-link-bundle with dependencies
doctrine/orm Version ^3.0
symfony/config Version ^7.3
symfony/dependency-injection Version ^7.3
symfony/doctrine-bridge Version ^7.3
symfony/framework-bundle Version ^7.3
symfony/http-kernel Version ^7.3
symfony/property-access Version ^7.3
symfony/security-http Version ^7.3
symfony/yaml Version ^7.3
tourze/bundle-dependency Version 1.*
tourze/symfony-dependency-service-loader Version 1.0.*
tourze/wechat-mini-program-bundle Version 1.0.*