# NotificationPusher - Documentation ## GCM adapter [GCM](http://developer.android.com/google/gcm/gs.html) adapter is used to push notification to Google/Android devices. ### Custom notification push example ``` php 'YourApiKey', )); // Set the device(s) to push the notification to. $devices = new DeviceCollection(array( new Device('Token1'), new Device('Token2'), new Device('Token3'), )); // Then, create the push skel. $message = new Message('This is an example.'); // Finally, create and add the push to the manager, and push it! $push = new Push($gcmAdapter, $devices, $message); $pushManager->add($push); $pushManager->push(); // Returns a collection of notified devices ``` ## Documentation index * [Installation](https://github.com/Ph3nol/NotificationPusher/blob/master/doc/installation.md) * [Getting started](https://github.com/Ph3nol/NotificationPusher/blob/master/doc/getting-started.md) * [APNS adapter](https://github.com/Ph3nol/NotificationPusher/blob/master/doc/apns-adapter.md) * GCM adapter * [Create an adapter](https://github.com/Ph3nol/NotificationPusher/blob/master/doc/create-an-adapter.md) * [Push from CLI](https://github.com/Ph3nol/NotificationPusher/blob/master/doc/push-from-cli.md)