PHPackages                             asachanfbd/laravel-push-notification - 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. asachanfbd/laravel-push-notification

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

asachanfbd/laravel-push-notification
====================================

Laravel 5 Package for sending push notifications to Android and iOS devices. Same as witty's with added support for Laravel 5.2

v1.0.1(10y ago)27872MITPHPPHP &gt;=5.4.0

Since Nov 11Pushed 10y ago2 watchersCompare

[ Source](https://github.com/asachanfbd/laravel-push-notification)[ Packagist](https://packagist.org/packages/asachanfbd/laravel-push-notification)[ RSS](/packages/asachanfbd-laravel-push-notification/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (2)Versions (5)Used By (0)

Laravel Push Notification v1.0.1
================================

[](#laravel-push-notification-v101)

Based on  forked from

Added support for Laravel 5.2.\*.

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

[](#installation)

Installing the package

```
composer require asachanfbd/laravel-push-notification
```

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

```
'providers' => array(
    'Asachanfbd\LaravelPushNotification\PushNotificationServiceProvider'
)
```

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

```
'aliases' => array(
	'PushNotification'      => 'Asachanfbd\LaravelPushNotification\PushNotification',
)
```

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

[](#configuration)

Copy the config file into your project by running

```
php artisan vendor:publish

```

This will generate a config file like this

```
array(
    'iOS'     => [
        'environment' => env('IOS_PUSH_ENV', 'development'),
        'certificate' => env('IOS_PUSH_CERT', __DIR__ . '/ios-push-notification-certificates/development/certificate.pem'),
        'passPhrase'  => env('IOS_PUSH_PASSWORD', '291923Job'),
        'service'     => 'apns'
    ],

    'android' => [
        'environment' => env('ANDROID_PUSH_ENV', 'development'),
        'apiKey'      => env('ANDROID_PUSH_API_KEY', 'yourAPIKey'),
        'service'     => 'gcm'
    ]
);
```

Where all first level keys corresponds to an service configuration, each service has its own properties, android for instance have `apiKey` and IOS uses `certificate` and `passPhrase`. You can set as many services configurations as you want, one for each app. A directory with the name 'ios-push-notification-certificates' will be added to the config folder for you to store both development and production certificates.

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

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

Usage
=====

[](#usage)

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

#### Usage advice

[](#usage-advice)

This package should be used with [Laravel Queues](http://laravel.com/docs/queues), so pushes dont blocks the user and are processed in the background, meaning a better flow.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity61

Established project with proven stability

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

Total

2

Last Release

3674d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/57b383db249948251107baa038d9b82d31575bdaed2c60a0b2d9a4b481f89b42?d=identicon)[asachanfbd](/maintainers/asachanfbd)

---

Tags

laravelpushnotificationlaravel 5android

### Embed Badge

![Health badge](/badges/asachanfbd-laravel-push-notification/health.svg)

```
[![Health](https://phpackages.com/badges/asachanfbd-laravel-push-notification/health.svg)](https://phpackages.com/packages/asachanfbd-laravel-push-notification)
```

###  Alternatives

[berkayk/onesignal-laravel

OneSignal Push Wrapper Laravel

5295.9M12](/packages/berkayk-onesignal-laravel)[witty/laravel-push-notification

Laravel 5 Package for sending push notifications to Android and iOS devices

245.0k](/packages/witty-laravel-push-notification)

PHPackages © 2026

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