PHPackages                             b3da/pusher-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. [Mail &amp; Notifications](/categories/mail)
4. /
5. b3da/pusher-bundle

ActiveSymfony-bundle[Mail &amp; Notifications](/categories/mail)

b3da/pusher-bundle
==================

Symfony bundle for Android and Ios push notifications

1.0.0(7y ago)26471[1 PRs](https://github.com/b3da-cz/PusherBundle/pulls)GPLV3PHPPHP &gt;=5.5.9

Since Jul 20Pushed 2y ago1 watchersCompare

[ Source](https://github.com/b3da-cz/PusherBundle)[ Packagist](https://packagist.org/packages/b3da/pusher-bundle)[ Docs](https://github.com/b3da-cz/PusherBundle)[ RSS](/packages/b3da-pusher-bundle/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

### b3da\\PusherBundle

[](#b3dapusherbundle)

Symfony bundle for Android and Ios push notifications

#### Installation

[](#installation)

- add package to your project

```
$ composer require b3da/pusher-bundle "dev-master"
```

- add bundle into `AppKernel`

```
new b3da\PusherBundle\b3daPusherBundle(),
```

- add configuration for desired services in `config.yml`

```
b3da_pusher:
    fcm:  # Firebase Cloud Messaging
        server_key: 'foobarbaz'
    gcm:  # Google Cloud Messaging (deprecated)
        server_key: 'foobarbaz'
    apn:  # Apple Push Notification Service
        passphrase: 'foobarbaz'
        cert_path: 'cert.pem'  # relative to app root dir
```

- optional - import routes in `routing.yml` and visit `/pusher/api/doc/` for more info

```
b3da_pusher:
    resource: "@b3daPusherBundle/Controller/"
    type:     annotation
    prefix:   "/pusher/"
```

#### Usage

[](#usage)

- Android - Firebase Cloud Messaging

```
$msgSound = 'default';  # optional - can be 'default', 'none', or notification sound name
$msgNotoficationId = 1;  # optional - increment for display multiple notification simultaneously
$fcm = $this->get('b3da_pusher.android.fcm');
$message = new b3da\PusherBundle\Model\Message('title', 'message body', $msgSound, $msgNotificationId);
$fcm->notify($recipient, $message->composeAndroidFcmMessage());
# result:
dump($fcm->getOutputAsObject());
```

- Android - Google Cloud Messaging (deprecated)

```
$msgSound = 'default';  # optional - can be 'default', 'none', or notification sound name
$msgNotoficationId = 1;  # optional - increment for display multiple notification simultaneously
$gcm = $this->get('b3da_pusher.android.gcm');
$message = new b3da\PusherBundle\Model\Message('title', 'message body', $msgSound, $msgNotificationId);
$gcm->notify($recipient, $message->composeAndroidGcmMessage());
# result:
dump($gcm->getOutputAsObject());
```

- IOS - Apple Push Notification Service

```
$msgSound = 'default';  # optional - can be 'default', 'none', or notification sound name
$gcm = $this->get('b3da_pusher.ios.apn');
$message = new b3da\PusherBundle\Model\Message('title', 'message body', $msgSound);
$apn->notify($recipient, $message->composeIosMessage());
# result:
dump($apn->getOutputAsObject());
```

#### Full configuration with defaults

[](#full-configuration-with-defaults)

```
b3da_pusher:
    fcm:
        server_url: 'https://fcm.googleapis.com/fcm/send'
        server_key: null   # must be defined to use FCM
        proxy: null
    gcm:
        server_url: 'https://android.googleapis.com/gcm/send'
        server_key: null   # must be defined to use GCM
        proxy: null
    apn:
        server_url: 'ssl://gateway.sandbox.push.apple.com:2195'
        passphrase: null   # must be defined to use APN
        cert_path: 'cert.pem'   # must be defined to use APN
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2855d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/417ce6e6aa29246d9cd7d2f20689f767f12c9ecae53306089f8781f7fb6376b0?d=identicon)[b3da](/maintainers/b3da)

---

Top Contributors

[![b3da-cz](https://avatars.githubusercontent.com/u/16703735?v=4)](https://github.com/b3da-cz "b3da-cz (4 commits)")

---

Tags

symfonypushnotificationgcmfirebaseFCMionicandroidapnsiospush notificationscordova

### Embed Badge

![Health badge](/badges/b3da-pusher-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/b3da-pusher-bundle/health.svg)](https://phpackages.com/packages/b3da-pusher-bundle)
```

###  Alternatives

[mcfedr/awspushbundle

A set of services to simplify using Aws to send push notifications

40378.6k1](/packages/mcfedr-awspushbundle)[sly/notification-pusher

Standalone PHP library for easy devices notifications push.

1.2k2.8M15](/packages/sly-notification-pusher)[paragraph1/php-fcm

PHP application server for google firebase cloud messaging (FCM)

1991.2M10](/packages/paragraph1-php-fcm)

PHPackages © 2026

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