PHPackages                             authbucket/push-php - 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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. authbucket/push-php

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

authbucket/push-php
===================

Push notifications for mobile devices based on the Symfony Components

1.0.6(10y ago)82641MITPHPPHP &gt;=5.5.9

Since Aug 13Pushed 9y ago3 watchersCompare

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

READMEChangelogDependencies (20)Versions (33)Used By (1)

AuthBucket\\Push
================

[](#authbucketpush)

[![Build Status](https://camo.githubusercontent.com/af74bfa1431913de987f999a136a9b4016809ccf4e6dcde57fb68799122f0333/68747470733a2f2f7472617669732d63692e6f72672f617574686275636b65742f707573682d7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/authbucket/push-php)[![Coverage Status](https://camo.githubusercontent.com/d075710768db5a4151edd19b113923332ff373d5ae6169b22ad7ef85f9920402/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f617574686275636b65742f707573682d7068702f62616467652e7376673f6272616e63683d6d617374657226736572766963653d676974687562)](https://coveralls.io/github/authbucket/push-php?branch=master)[![Dependency Status](https://camo.githubusercontent.com/8bc2c4b93b84872bff14e027c5f7d9799480c18bea63f3f1c554dc43e50f1e3e/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f7068702f617574686275636b65743a707573682d7068702f6465762d6d61737465722f62616467652e737667)](https://www.versioneye.com/php/authbucket:push-php/dev-master)[![Latest Stable Version](https://camo.githubusercontent.com/6e95820bb3802bfd7f842b167ae3ea37bfe415bf5faa92df8ede6b13808d247f/68747470733a2f2f706f7365722e707567782e6f72672f617574686275636b65742f707573682d7068702f762f737461626c652e737667)](https://packagist.org/packages/authbucket/push-php)[![Total Downloads](https://camo.githubusercontent.com/f3b0f31c810f3b302e3fed5c09f7f4cc87d28d296d4c3f98ae3fabfd3bc07ad0/68747470733a2f2f706f7365722e707567782e6f72672f617574686275636b65742f707573682d7068702f646f776e6c6f6164732e737667)](https://packagist.org/packages/authbucket/push-php)[![License](https://camo.githubusercontent.com/4b06e1bc095d2b5bcc0809eff125239562157a15376156c5b8361df577d3d942/68747470733a2f2f706f7365722e707567782e6f72672f617574686275636b65742f707573682d7068702f6c6963656e73652e737667)](https://packagist.org/packages/authbucket/push-php)

The primary goal of [AuthBucket\\Push](http://push-php.authbucket.com/) is to develop a library for sending out push notifications to mobile devices; secondary goal would be develop corresponding wrapper [Symfony2 Bundle](http://symfony.com) and [Drupal module](https://www.drupal.org).

This library bundle with a [Silex](http://silex.sensiolabs.org/) based [AuthBucketPushServiceProvider](https://github.com/authbucket/push-php/blob/master/src/Provider/AuthBucketPushServiceProvider.php) for unit test and demo purpose. Installation and usage can refer as below.

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

[](#installation)

Simply add a dependency on `authbucket/push-php` to your project's `composer.json` file if you use [Composer](http://getcomposer.org/) to manage the dependencies of your project.

Here is a minimal example of a `composer.json`:

```
{
    "require": {
            "authbucket/push-php": "~3.0"
    }
}

```

### Parameters

[](#parameters)

The bundled [AuthBucketPushServiceProvider](https://github.com/authbucket/push-php/blob/master/src/Provider/AuthBucketPushServiceProvider.php) come with following parameters:

- `authbucket_push.model`: (Optional) Override this with your own model classes, default with in-memory AccessToken for using resource firewall with remote debug endpoint.
- `authbucket_push.model_manager.factory`: (Optional) Override this with your backend model managers, e.g. Doctrine ORM EntityRepository, default with in-memory implementation for using resource firewall with remote debug endpoint.

### Services

[](#services)

The bundled [AuthBucketPushServiceProvider](https://github.com/authbucket/push-php/blob/master/src/Provider/AuthBucketPushServiceProvider.php) come with following services controller which simplify the Push controller implementation overhead:

- `authbucket_push.push_controller`: Push endpoint controller.

### Registering

[](#registering)

If you are using [Silex](http://silex.sensiolabs.org/), register [AuthBucketPushServiceProvider](https://github.com/authbucket/push-php/blob/master/src/Provider/AuthBucketPushServiceProvider.php) as below:

```
$app->register(new AuthBucket\Push\Provider\AuthBucketPushServiceProvider());

```

Moreover, enable following service providers if that's not already the case:

```
$app->register(new AuthBucket\OAuth2\Provider\AuthBucketOAuth2ServiceProvider());
$app->register(new Silex\Provider\MonologServiceProvider());
$app->register(new Silex\Provider\SecurityServiceProvider());
$app->register(new Silex\Provider\ValidatorServiceProvider());

```

Demo
----

[](#demo)

The demo is based on [Silex](http://silex.sensiolabs.org/) and [AuthBucketPushServiceProvider](https://github.com/authbucket/push-php/blob/master/src/Provider/AuthBucketPushServiceProvider.php). Read though [Demo](http://push-php.authbucket.com/demo) for more information.

You may also run the demo locally. Open a console and execute the following command to install the latest version in the `push-php` directory:

```
$ composer create-project authbucket/push-php authbucket/push-php "~1.0"

```

Then use the PHP built-in web server to run the demo application:

```
$ cd authbucket/push-php
$ ./app/console server:run

```

If you get the error `There are no commands defined in the "server" namespace.`, then you are probably using PHP 5.3. That's ok! But the built-in web server is only available for PHP 5.4.0 or higher. If you have an older version of PHP or if you prefer a traditional web server such as Apache or Nginx, read the [Configuring a web server](http://silex.sensiolabs.org/doc/web_servers.html) article.

Open your browser and access the  URL to see the Welcome page of demo application.

Also access [http://127.0.0.1:8000/admin/refresh\_database](http://127.0.0.1:8000/admin/refresh_database) to initialize the bundled SQLite database with user account `admin`:`secrete`.

Documentation
-------------

[](#documentation)

Push's documentation is built with [Sami](https://github.com/fabpot/Sami) and publicly hosted on [GitHub Pages](http://authbucket.github.io/push-php).

To built the documents locally, execute the following command:

```
$ composer sami

```

Open `build/sami/index.html` with your browser for the documents.

Tests
-----

[](#tests)

This project is coverage with [PHPUnit](http://phpunit.de/) test cases; CI result can be found from [Travis CI](https://travis-ci.org/authbucket/push-php); code coverage report can be found from [Coveralls](https://coveralls.io/r/authbucket/push-php).

To run the test suite locally, execute the following command:

```
$ composer phpunit

```

Open `build/logs/html` with your browser for the coverage report.

References
----------

[](#references)

- [Demo](http://push-php.authbucket.com/demo)
- [API](http://authbucket.github.io/push-php/)
- [GitHub](https://github.com/authbucket/push-php)
- [Packagist](https://packagist.org/packages/authbucket/push-php)
- [Travis CI](https://travis-ci.org/authbucket/push-php)
- [Coveralls](https://coveralls.io/r/authbucket/push-php)

License
-------

[](#license)

- Code released under [MIT](https://github.com/authbucket/push-php/blob/master/LICENSE)
- Docs released under [CC BY 4.0](http://creativecommons.org/licenses/by/4.0/)

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity69

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 ~16 days

Recently: every ~0 days

Total

31

Last Release

3836d ago

Major Versions

0.0.24 → 1.0.02015-12-20

PHP version history (2 changes)0.0.1PHP &gt;=5.3.9

1.0.0PHP &gt;=5.5.9

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/780562?v=4)[Wong Hoi Sing Edison](/maintainers/hswong3i)[@hswong3i](https://github.com/hswong3i)

---

Top Contributors

[![hswong3i](https://avatars.githubusercontent.com/u/780562?v=4)](https://github.com/hswong3i "hswong3i (166 commits)")

---

Tags

psr-3pushnotificationgcmoauth2silexPSR-4PSR-2apnsPSR-1

### Embed Badge

![Health badge](/badges/authbucket-push-php/health.svg)

```
[![Health](https://phpackages.com/badges/authbucket-push-php/health.svg)](https://phpackages.com/packages/authbucket-push-php)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.8k532.1M19.4k](/packages/laravel-framework)[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.5M373](/packages/easycorp-easyadmin-bundle)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

19564.8M1.6k](/packages/drupal-core)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6941.5M396](/packages/drupal-core-recommended)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.8M712](/packages/sylius-sylius)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.4M517](/packages/shopware-core)

PHPackages © 2026

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