tourze/jiguang-push-bundle

There is no license information available for the latest version (0.0.1) of this package.

极光推送

Installs: 0

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:symfony-bundle

0.0.1 2025-04-07 12:49 UTC

This package is auto-updated.

Last update: 2025-04-28 17:32:31 UTC


README

Version Build Status Test Coverage

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

  1. Register the bundle in your Symfony application (if not using Flex):

    // config/bundles.php
    return [
        // ...
        JiguangPushBundle\JiguangPushBundle::class => ['all' => true],
    ];
  2. Configure your Jiguang push accounts in the database or via admin panel.

  3. 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);
  4. For more usage, see entity and workflow docs in this package.

Documentation

License

MIT