PHPackages                             ronte-ltd/push-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. ronte-ltd/push-bundle

ActiveSymfony-bundle

ronte-ltd/push-bundle
=====================

Use to send push notifications

15PHP

Since Sep 13Pushed 8y ago2 watchersCompare

[ Source](https://github.com/ronte-ltd/PushBundle)[ Packagist](https://packagist.org/packages/ronte-ltd/push-bundle)[ RSS](/packages/ronte-ltd-push-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

RonteLtdPushBundle
==================

[](#ronteltdpushbundle)

Provide functions to send push notifications.

Features include:

- Send single notification
- Send notifications on background
- Send bulk notifications

**Note:** For now supports only APNS.

Install
-------

[](#install)

### Composer

[](#composer)

```
composer require ronte-ltd/push-bundle
```

Init
----

[](#init)

### AppKernel.php

[](#appkernelphp)

```
new RonteLtd\PushBundle\RonteLtdPushBundle(),
```

### config.yml

[](#configyml)

```
ronte_ltd_push:
    push_env: "%push_env%"
    push_sound: true // bool
    push_expiry: 12000 // message expiry, int value in seconds
    bg_worker_id: "%bg_worker_id%"
    gearman_server: "%gearman_server%"
    gearman_port: "%gearman_port%"
```

### parameters.yml

[](#parametersyml)

```
push_env: "valid values: 'prod', 'dev'"
gearman_server: "Add gearman server here"
gearman_port: "Add gearman port here"
bg_worker_id: test //This will be a prefix for a background function in case multiple projects on a server using this command.
```

### Certificates

[](#certificates)

```
Puth APNS sertificates files to 'var/apns' folder

```

Use
---

[](#use)

### Send single notification

[](#send-single-notification)

```
/**
 * @param string $deviceId - recipient device token
 * @param string $text - text message
 * @param array $payload - payload array
 */
 $payload = [
     'project' => $id,    // int|string name or id of an app, required
     'pushType' => $type, // int type, required
     'badge' => null,     // int|null, optional
     'headers' => [],     // array of headers, optional
     'extra' => [],       // additional info array, optional
 ];

 $credentials = [
     'certificate' => $fullPathToCertificate, // required
     'passPhrase' => $passPhrase,
     'certificationAuthorityFile' => $fullPathToCertificationAuthorityFile,
 ];
$container->get('push.pusher')->send($deviceId, $text, $payload, $creadentials);
```

\###Send notifications on background Run `push:worker:run` command on background.

```
$payload = [
     'project' => $id,    // int|string name or id of an app, required
     'pushType' => $type, // int type, required
     'badge' => null,     // int|null, optional
     'headers' => [],     // array of headers, optional
     'extra' => [],       // additional info array, optional
 ];

$credentials = [
  'certificate' => $fullPathToCertificate, // required
  'passPhrase' => $passPhrase,
  'certificationAuthorityFile' => $fullPathToCertificationAuthorityFile,
];

$pusher = $container->get('push.pusher');
$pusher->addPush($deviceId, $text, $payload, , $creadentials);
```

\###Send bulk notifications

```
$payload = [
     'project' => $id,    // int|string name or id of an app, required
     'pushType' => $type, // int type, required
     'badge' => null,     // int|null, optional
     'headers' => [],     // array of headers, optional
     'extra' => [],       // additional info array, optional
 ];
$pusher = $container->get('push.apns');
$pusher->addMessage(
    $pusher->createMessage($deviceId, $text, $payload)
);
// Use addMessage as much as needed

$credentials = [
  'certificate' => $fullPathToCertificate, // required
  'passPhrase' => $passPhrase,
  'certificationAuthorityFile' => $fullPathToCertificationAuthorityFile,
];

$pusher->runQueue($credentials);
```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/25991ce361df82734652cfea588bd2ea729733b14dcc7a4699daa94af25e9921?d=identicon)[Cawa87](/maintainers/Cawa87)

### Embed Badge

![Health badge](/badges/ronte-ltd-push-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/ronte-ltd-push-bundle/health.svg)](https://phpackages.com/packages/ronte-ltd-push-bundle)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
