2017 © Pedro Peláez
 

library gcm

Endroid Google Cloud Messaging

image

endroid/gcm

Endroid Google Cloud Messaging

  • Sunday, January 1, 2017
  • by endroid
  • Repository
  • 6 Watchers
  • 51 Stars
  • 64,952 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 16 Forks
  • 3 Open issues
  • 18 Versions
  • 3 % Grown

The README.md

Endroid Google Cloud Messaging

By endroid, (*1)

Latest Stable Version Build Status Total Downloads Monthly Downloads License, (*2)

Google Cloud Messaging is a service that helps developers send data from servers to their Android applications on Android devices. See Google GCM for more information., (*3)

Requests with messages targeting 1000+ registration ID's will automatically be chunked and sent in parallel in order to circumvent the maximum imposed by Google. So you don't have to bother about this restriction when using this class., (*4)

use Endroid\Gcm\Client;

$apiKey = '...';
$client = new Client($apiKey);

// Registration ID's of devices to target
$registrationIds = [
    //...
];

$data = [
    'title' => 'Message title',
    'message' => 'Message body',
];

$success = $client->send($data, $registrationIds);

If something went wrong or if you just want to inspect the response objects returned by the GCM server, you can retrieve these using the getResponses() method., (*5)

Symfony integration

Register the Symfony bundle in the kernel., (*6)

// app/AppKernel.php

public function registerBundles()
{
    $bundles = [
        // ...
        new Endroid\Gcm\Bundle\EndroidGcmBundle(),
    ];
}

The default parameters can be overridden via the configuration., (*7)

endroid_gcm:
    api_key: '...'

Now you can retrieve the client as follows., (*8)

$client = $this->get('endroid.gcm.client');

Versioning

Version numbers follow the MAJOR.MINOR.PATCH scheme. Backwards compatibility breaking changes will be kept to a minimum but be aware that these can occur. Lock your dependencies for production and test your code when upgrading., (*9)

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., (*10)

The Versions

01/01 2017

dev-master

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

Endroid Google Cloud Messaging

  Sources   Download

MIT

The Requires

 

The Development Requires

bundle cloud symfony google messaging notification push gcm endroid notifications

01/01 2017

1.3.1

1.3.1.0 https://github.com/endroid/Gcm

Endroid Google Cloud Messaging

  Sources   Download

MIT

The Requires

 

The Development Requires

bundle cloud symfony google messaging notification push gcm endroid notifications

31/12 2016

1.3.0

1.3.0.0 https://github.com/endroid/Gcm

Endroid Google Cloud Messaging

  Sources   Download

MIT

The Requires

 

The Development Requires

bundle cloud symfony google messaging notification push gcm endroid notifications

17/01 2016

1.2.12

1.2.12.0 https://github.com/endroid/Gcm

Endroid Google Cloud Messaging

  Sources   Download

MIT

The Requires

 

cloud google messaging notification push gcm endroid notifications

17/01 2016

1.2.11

1.2.11.0 https://github.com/endroid/Gcm

Endroid Google Cloud Messaging

  Sources   Download

MIT

The Requires

 

cloud google messaging notification push gcm endroid notifications

16/01 2016

1.2.10

1.2.10.0 https://github.com/endroid/Gcm

Endroid Google Cloud Messaging

  Sources   Download

MIT

The Requires

 

cloud google messaging notification push gcm endroid notifications

16/01 2016

1.2.9

1.2.9.0 https://github.com/endroid/Gcm

Endroid Google Cloud Messaging

  Sources   Download

MIT

The Requires

 

cloud google messaging notification push gcm endroid notifications

01/01 2016

1.2.8

1.2.8.0 https://github.com/endroid/Gcm

Endroid Google Cloud Messaging

  Sources   Download

MIT

The Requires

 

The Development Requires

cloud google messaging notification push gcm endroid notifications

08/07 2015

1.2.7

1.2.7.0 https://github.com/endroid/Gcm

Endroid Google Cloud Messaging

  Sources   Download

MIT

The Requires

 

The Development Requires

cloud google messaging notification push gcm endroid notifications

04/07 2015

1.2.6

1.2.6.0 https://github.com/endroid/Gcm

Endroid Google Cloud Messaging

  Sources   Download

MIT

The Requires

 

The Development Requires

cloud google messaging notification push gcm endroid notifications

04/07 2015

1.2.5

1.2.5.0 https://github.com/endroid/Gcm

Endroid Google Cloud Messaging

  Sources   Download

MIT

The Requires

 

The Development Requires

cloud google messaging notification push gcm endroid notifications

04/07 2015

1.2.4

1.2.4.0 https://github.com/endroid/Gcm

Endroid Google Cloud Messaging

  Sources   Download

MIT

The Requires

 

The Development Requires

cloud google messaging notification push gcm endroid notifications

27/07 2014

1.2.3

1.2.3.0 https://github.com/endroid/Gcm

Endroid Google Cloud Messaging

  Sources   Download

MIT

The Requires

 

cloud google messaging notification push gcm endroid notifications

18/12 2013

1.2.2

1.2.2.0 https://github.com/endroid/Gcm

Endroid Google Cloud Messaging

  Sources   Download

MIT

The Requires

 

cloud google messaging notification push gcm endroid notifications

23/06 2013

1.2.1

1.2.1.0 https://github.com/endroid/Gcm

Endroid Google Cloud Messaging

  Sources   Download

MIT

The Requires

 

cloud 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

  Sources   Download

MIT

The Requires

 

cloud 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

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

cloud google messaging notification push gcm endroid notifications

26/07 2012

1.0.0

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

Endroid Google Cloud Messaging

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

cloud google messaging notification push gcm endroid notifications