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

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

witty/laravel-push-notification
===============================

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

1.0.0(10y ago)245.0k12[6 issues](https://github.com/larkinwhitaker/laravel-push-notification/issues)[1 PRs](https://github.com/larkinwhitaker/laravel-push-notification/pulls)MITPHPPHP &gt;=5.4.0

Since Nov 11Pushed 10y ago4 watchersCompare

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

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

laravel-push-notification
=========================

[](#laravel-push-notification)

Based off of  with support for Laravel 5 and 5.1.

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

[](#installation)

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

```
"witty/laravel-push-notification": "dev-master"
```

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

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

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

```
'aliases' => array(
	'PushNotification'      => 'Witty\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');
```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity58

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3842d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6526ba7f2d1010571d540de1d52792b87e667ce4c58708d82b3f2d95cae3877a?d=identicon)[larkinwhitaker](/maintainers/larkinwhitaker)

---

Top Contributors

[![larkinwhitaker](https://avatars.githubusercontent.com/u/9460109?v=4)](https://github.com/larkinwhitaker "larkinwhitaker (15 commits)")

---

Tags

laravelpushnotificationgcmlaravel 5apns

### Embed Badge

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

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

###  Alternatives

[edujugon/push-notification

Laravel Package to send push notifications to Android and IOS devices. (GCM,FCM,APN)

4891.4M1](/packages/edujugon-push-notification)[turbo124/laravel-push-notification

Laravel package to send push notifications to mobile devices (apns, gcm)

1157.9k](/packages/turbo124-laravel-push-notification)

PHPackages © 2026

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