PHPackages                             wassafr/push-server-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. wassafr/push-server-bundle

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

wassafr/push-server-bundle
==========================

Wassa Push Server bundle

2.0.1(8y ago)1147proprietaryPHPPHP ~5.4|~7.0

Since Feb 2Pushed 8y ago3 watchersCompare

[ Source](https://github.com/wassafr/push-server-bundle)[ Packagist](https://packagist.org/packages/wassafr/push-server-bundle)[ RSS](/packages/wassafr-push-server-bundle/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (8)Dependencies (2)Versions (15)Used By (0)

WassaPushServerBundle
=====================

[](#wassapushserverbundle)

The **WassaPushServerBundle** bundle allows you to send push notification to iOS and Android devices. It use a custom library to send GCM notifications and APNS-PHP for APNS notifications.

Installation
------------

[](#installation)

Require the `wassafr/push-server-bundle` package in your composer.json and update your dependencies.

```
$ composer require duccio/apns-php dev-master --no-update
$ composer require wassafr/push-server-bundle

```

Register the bundle in `app/AppKernel.php`:

```
// app/AppKernel.php
public function registerBundles()
{
    return array(
        // ...
        new Wassa\MPSBundle\MPSBundle(),
    );
}
```

Import the routing definition in `routing.yml`:

```
# app/config/routing.yml
wassa_mps_api:
    resource: "@WassaMPSBundle/Controller/API/"
    type: annotation
    prefix: /api/push
```

To enable the configuration, we suggest to add parameters to parameters.yml.dist so that you can change them easily when you deploy the bundle to multiple servers with different configurations:

```
# app/config/parameters.yml.dist
    wassa_mps_gcm_api_key:
    wassa_mps_gcm_dry_run: false
    wassa_mps_apns_environment: sandbox
    wassa_mps_apns_prod_cert: ~
    wassa_mps_apns_sand_cert: ~
    wassa_mps_apns_ca_cert: ~
    wassa_mps_entity_manager: ~
```

```
# app/config/parameters.yml
    wassa_mps_gcm_api_key:
    wassa_mps_gcm_dry_run: false
    wassa_mps_apns_environment: sandbox
    wassa_mps_apns_prod_cert:
    wassa_mps_apns_sand_cert:
    wassa_mps_apns_ca_cert:
    wassa_mps_entity_manager: ~
```

And finally:

```
# app/config/config.yml
wassa_mps:
    gcm:
        api_key: "%wassa_mps_gcm_api_key%"
        dry_run: "%wassa_mps_gcm_dry_run%"
    apns:
        environment: "%wassa_mps_apns_environment%"
        prod_cert: "%wassa_mps_apns_prod_cert%"
        sand_cert: "%wassa_mps_apns_sand_cert%"
        ca_cert: "%wassa_mps_apns_ca_cert%"
    entity_manager: "%wassa_mps_entity_manager%"
```

Send Push
---------

[](#send-push)

```
// AppBundle/Controller/YourController.php

$mps = $this->get('wassa_mps');
$pushData = new PushData();
$pushData->setGcmPayloadData($gcmPayloadData); // $gcmPayloadData is an associative array
$pushData->setGcmCollapseKey($gcmCollapsKey);
$pushData->setApnsText($apnsText);
$pushData->setApnsBadge($apnsBadge);
$pushData->setApnsCategory($apnsCategory);
$pushData->setApnsCustomProperties($apnsCustomProperties); // $apnsCustomProperties is an associative array
$pushData->setApnsExpiry($apnsExpiry);
$pushData->setApnsSound($apnsSound);
```

API
---

[](#api)

The bundle provide a simple API for device regisration. The registration service should be called in POST with the following POST data:

```
{
    "registrationToken": "",
    "platform": "",
    "customData":
}
```

Events
------

[](#events)

The bundle fire the following events:

- `wassa_mps.registration.pre_check`: right after the registration API is called but before the device is registered
- `wassa_mps.registration.post_check`: right after the device has been registered

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity66

Established project with proven stability

 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

Every ~63 days

Recently: every ~170 days

Total

13

Last Release

3035d ago

Major Versions

1.0.9 → 2.0.02018-03-01

### Community

Maintainers

![](https://www.gravatar.com/avatar/877eda4ea7a283f6586e4bb72bba182e3f0267dda97e7d42157b178cdc55d832?d=identicon)[wassafr](/maintainers/wassafr)

---

Top Contributors

[![wassafr](https://avatars.githubusercontent.com/u/10235180?v=4)](https://github.com/wassafr "wassafr (22 commits)")

---

Tags

pushnotificationgcmapns

### Embed Badge

![Health badge](/badges/wassafr-push-server-bundle/health.svg)

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

###  Alternatives

[sly/notification-pusher

Standalone PHP library for easy devices notifications push.

1.2k2.8M16](/packages/sly-notification-pusher)[mcfedr/awspushbundle

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

40382.7k1](/packages/mcfedr-awspushbundle)[turbo124/laravel-push-notification

Laravel package to send push notifications to mobile devices (apns, gcm)

1158.0k](/packages/turbo124-laravel-push-notification)[witty/laravel-push-notification

Laravel 5 Package for sending push notifications to Android and iOS devices

245.0k](/packages/witty-laravel-push-notification)

PHPackages © 2026

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