PHPackages                             piyushpatil/androidpushnotification - 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. piyushpatil/androidpushnotification

ActiveProject[Mail &amp; Notifications](/categories/mail)

piyushpatil/androidpushnotification
===================================

Laravel package to send push notifications to android mobile devices (gcm)

396PHP

Since Apr 13Pushed 11y ago1 watchersCompare

[ Source](https://github.com/piyushpatil027/AndroidPushNotification)[ Packagist](https://packagist.org/packages/piyushpatil/androidpushnotification)[ RSS](/packages/piyushpatil-androidpushnotification/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel 5 AndroidPushNotification
=================================

[](#laravel-5--androidpushnotification)

Package to enable sending push notifications to android devices.

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

[](#installation)

Update your `composer.json` file to include this package as a dependency

```
"piyushpatil/androidpushnotification": "dev-master"
```

Register the PushNotification service provider by adding it to the providers array in the `config/app.php` file.

```
'providers' => [
     'Piyushpatil\Androidpushnotification\AndroidpushnotificationServiceProvider',
]
```

Alias the PushNotification facade by adding it to the aliases array in the `config/app.php` file.

```
'aliases' => [
    'PushNotification' => 'Piyushpatil\Androidpushnotification\Facades\PushNotification',
]
```

Configuration
=============

[](#configuration)

Copy the config file into your project by running

```
 php artisan vendor:publish --provider="piyushpatil/androidpushnotification" --tag="config"

```

This will generate a config file like this

```
    return [
    'Android' => [
        'environment' => 'production',
        'apiKey' => 'yourAPIKey',
        'service' => 'gcm'
    ]
];
```

Where all first level keys corresponds to an service configuration, each service has its own properties, android for instance have `apiKey`. You can set as many services configurations as you want, one for each app.

##### Dont forget to set `service` key to identify Android `'service'=>'gcm'`

[](#dont-forget-to-set-service-key-to-identify-android-servicegcm)

Where app argument `Android` refers to defined service in config file. To multiple devices and optioned message:

```
In Controller file write this line.

use PushNotification;

PushNotification::app('Android')
                ->to($deviceToken)
                ->send('Hello World, i`m a push message');

$devices = PushNotification::DeviceCollection(array(
    PushNotification::Device('token', array('badge' => 5)),
    PushNotification::Device('token1', array('badge' => 1)),
    PushNotification::Device('token2')
));

collection = PushNotification::app('Android')
    ->to($devices)
    ->send($message);

// get response for each device push
foreach ($collection->pushManager as $push) {
    $response = $push->getAdapter()->getResponse();
}

[Notification Package]:https://github.com/Ph3nol/NotificationPusher
[Laravel Queues]:http://laravel.com/docs/queues
```

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6272053?v=4)[PIYUSH C. PATIL](/maintainers/piyushpatil027)[@piyushpatil027](https://github.com/piyushpatil027)

---

Top Contributors

[![piyushpatil027](https://avatars.githubusercontent.com/u/6272053?v=4)](https://github.com/piyushpatil027 "piyushpatil027 (12 commits)")

### Embed Badge

![Health badge](/badges/piyushpatil-androidpushnotification/health.svg)

```
[![Health](https://phpackages.com/badges/piyushpatil-androidpushnotification/health.svg)](https://phpackages.com/packages/piyushpatil-androidpushnotification)
```

###  Alternatives

[maize-tech/laravel-email-domain-rule

Laravel Email Domain Rule

612.0k](/packages/maize-tech-laravel-email-domain-rule)[sarfraznawaz2005/noty

Laravel package to incorporate noty flash notifications into laravel.

324.5k](/packages/sarfraznawaz2005-noty)

PHPackages © 2026

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