tourze / jiguang-push-bundle
极光推送
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: ^8.1
- doctrine/doctrine-bundle: ^2.13
- symfony/framework-bundle: ^6.4
- tourze/arrayable: 0.0.*
- tourze/doctrine-indexed-bundle: 0.0.*
- tourze/doctrine-timestamp-bundle: 0.0.*
- tourze/doctrine-track-bundle: 0.0.*
- tourze/doctrine-user-bundle: 0.0.*
- tourze/easy-admin-attribute: 0.0.*
- tourze/http-client-bundle: 0.0.*
This package is auto-updated.
Last update: 2025-04-28 17:32:31 UTC
README
Introduction
Jiguang Push Bundle is a Symfony bundle for integrating Jiguang (JPush) push notification service. It provides a complete solution for managing push accounts, devices, tags, and sending push notifications to various platforms (iOS, Android, etc.).
Features
- Manage multiple Jiguang push accounts
- Device registration and management
- Tag management and device grouping
- Flexible audience targeting (all, tag, alias, registrationId, etc.)
- Support for notification and message types
- Embedded entity support for advanced push features (options, callback, etc.)
- Symfony ORM integration
- Easy to extend and customize
Installation
Requirements
- PHP >= 8.1
- Symfony >= 6.4
- Doctrine ORM >= 2.20
Install via Composer
composer require tourze/jiguang-push-bundle
Quick Start
-
Register the bundle in your Symfony application (if not using Flex):
// config/bundles.php return [ // ... JiguangPushBundle\JiguangPushBundle::class => ['all' => true], ];
-
Configure your Jiguang push accounts in the database or via admin panel.
-
Use the provided service to send push notifications:
use JiguangPushBundle\Service\JiguangService; use JiguangPushBundle\Request\PushRequest; use JiguangPushBundle\Entity\Push; $push = new Push(); // ...set push properties... $request = new PushRequest(); $request->setAccount($account); $request->setMessage($push); $service = $container->get(JiguangService::class); $result = $service->request($request);
-
For more usage, see entity and workflow docs in this package.
Documentation
License
MIT