2017 © Pedro Peláez
 

library gcm-bundle

Endroid Google Cloud Messaging Bundle for Symfony

image

laszlo-karpati/gcm-bundle

Endroid Google Cloud Messaging Bundle for Symfony

  • Friday, April 19, 2013
  • by leslie.karpati
  • Repository
  • 1 Watchers
  • 0 Stars
  • 15 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 8 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Endroid Google Cloud Messaging Bundle

By endroid, (*1)

Build Status, (*2)

This bundle enables you to use the Endroid Google Cloud Messaging (endroid/Gcm) library as a decoupled service and enables configuration through the Symfony framework. Google Cloud Messaging is a service that helps developers send data from servers to their Android applications on Android devices. For more information on the services provided see the endroid/Gcm repository and Google GCM., (*3)

knpbundles.com, (*4)

Requirements

Installation

Add in your composer.json

{
    "require": {
        "endroid/gcm-bundle": "dev-master"
    }
}

Install the bundle

``` bash $ curl -s http://getcomposer.org/installer | php $ php composer.phar update endroid/gcm-bundle, (*5)


Composer will install the bundle to your project's `vendor/endroid` directory. ### Enable the bundle via the kernel ``` php <?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Endroid\Bundle\GcmBundle\EndroidGcmBundle(), ); }

Configuration

config.yml

endroid_gcm:
    api_key: "Your API Key (use the Browser key)"

Usage

After installation and configuration, the service can be directly referenced from within your controllers., (*6)

<?php
public function gcmSendAction()
{
    $gcm = $this->get('endroid.gcm');

    $registrationIds = array(
        // Registration ID's of devices to target
    );

    $data = array(
        'title' => 'Message title',
        'message' => 'Message body',
    );

    $response = $gcm->send($data, $registrationIds);

    ...
}

License

This bundle is under the MIT license. For the full copyright and license information, please view the LICENSE file that was distributed with this source code., (*7)

The Versions

19/04 2013

dev-master

9999999-dev https://github.com/endroid/EndroidGcmBundle

Endroid Google Cloud Messaging Bundle for Symfony

  Sources   Download

MIT

The Requires

 

bundle cloud symfony google messaging notification push gcm endroid notifications

06/09 2012

1.2.0

1.2.0.0 https://github.com/endroid/gcm

Endroid Google Cloud Messaging Bundle for Symfony

  Sources   Download

MIT

The Requires

 

bundle cloud symfony google messaging notification push gcm endroid notifications

26/07 2012

1.1.0

1.1.0.0 https://github.com/endroid/gcm

Endroid Google Cloud Messaging Bundle for Symfony

  Sources   Download

MIT

The Requires

 

bundle cloud symfony google messaging notification push gcm endroid notifications

25/07 2012

1.0.0

1.0.0.0 https://github.com/endroid/gcm

Endroid Google Cloud Messaging Bundle for Symfony

  Sources   Download

MIT

The Requires

 

bundle cloud symfony google messaging notification push gcm endroid notifications