Download the PHP package tourze/jiguang-push-bundle without Composer
On this page you can find all versions of the php package tourze/jiguang-push-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package jiguang-push-bundle
Jiguang Push Bundle
中文
A comprehensive Symfony bundle for integrating Jiguang (JPush) push notification service. It provides complete account management, device registration, tag grouping, and flexible push message delivery with support for multiple platforms.
Table of Contents
- Features
- Requirements
- Installation
- Quick Start
- Configuration
- API Reference
- Documentation
- Security
- Contributing
- License
Features
- Multi-Account Management: Support for multiple Jiguang push accounts with separate configurations
- Device Registration: Automatic device registration and management with alias support
- Tag Grouping: Flexible tag-based device grouping for targeted push notifications
- Flexible Audience Targeting: Support for all, tag, alias, registrationId, and segment targeting
- Rich Push Types: Support for both notification and message push types
- Platform Support: Full support for iOS, Android, QuickApp, and HMS platforms
- Embedded Entities: Advanced push features with options, callback, and live activity support
- Symfony Integration: Deep integration with Symfony framework and Doctrine ORM
- Event System: Event-driven architecture with push lifecycle management
- HTTP Client Integration: Built-in HTTP client with automatic authentication
Requirements
- PHP >= 8.1
- Symfony >= 6.4
- Doctrine ORM >= 3.0
Installation
Install via Composer
Bundle Registration
If you're not using Symfony Flex, add the bundle to your config/bundles.php:
Database Migration
Create and run the database migration:
Quick Start
1. Create Push Account
First, create a Jiguang push account in your database:
2. Register Device
Register user devices for push notifications:
3. Send Push Notification
Send a simple notification:
4. Advanced Usage
Send targeted push with tags:
Configuration
Service Configuration
The bundle automatically configures the JiguangService. You can customize it in your config/services.yaml:
Entity Relationships
The bundle provides the following main entities:
- Account: Jiguang push account configuration
- Device: User device registration information
- Tag: Device grouping tags
- Push: Push message entity with full configuration
API Reference
Main Classes
JiguangPushBundle\Service\JiguangService- Main service for sending push notificationsJiguangPushBundle\Request\PushRequest- Push request wrapperJiguangPushBundle\Entity\Push- Push message entityJiguangPushBundle\Entity\Account- Account configuration entityJiguangPushBundle\Entity\Device- Device registration entity
Event System
The bundle dispatches events during push operations:
JiguangPushBundle\Event\PushEvent- Fired when push is sent
Documentation
For detailed documentation, see:
- Entity Design - Database schema and entity relationships
- Workflow - Push notification workflow
- Jiguang API Documentation
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Security Best Practices
- Store Jiguang credentials securely using environment variables
- Validate all input data before creating push notifications
- Use HTTPS for all API communications
- Regularly rotate API keys and credentials
- Monitor push activities and implement rate limiting
Contributing
Please see CONTRIBUTING.md for details on our code of conduct and the process for submitting pull requests.
License
The MIT License (MIT). Please see License File for more information.
All versions of jiguang-push-bundle with dependencies
doctrine/doctrine-bundle Version ^2.13
symfony/framework-bundle Version ^6.4
tourze/arrayable Version 0.0.*
tourze/easy-admin-attribute Version 0.0.*
tourze/doctrine-indexed-bundle Version 0.0.*
tourze/doctrine-timestamp-bundle Version 0.0.*
tourze/doctrine-user-bundle Version 0.0.*
tourze/http-client-bundle Version 0.0.*
tourze/doctrine-track-bundle Version 0.0.*