PHPackages                             fawzanm/laravel-pushy-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. fawzanm/laravel-pushy-notification

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

fawzanm/laravel-pushy-notification
==================================

Laravel Pushy Notification Channel

1.1(5y ago)3632MITPHPPHP &gt;=7.2

Since Jan 5Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/salfade/laravel-pushy-notification)[ Packagist](https://packagist.org/packages/fawzanm/laravel-pushy-notification)[ Docs](http://salfade.com/blog)[ RSS](/packages/fawzanm-laravel-pushy-notification/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (7)Versions (5)Used By (0)

Laravel Pushy Notification
==========================

[](#laravel-pushy-notification)

[![Latest Version on Packagist](https://camo.githubusercontent.com/c471f414a770530011a3814f2bb0eede19e5f15c9e4916ef4124a75208107619/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6661777a616e6d2f6c61726176656c2d70757368792d6e6f74696669636174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/fawzanm/laravel-pushy-notification)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/24744e2fcf43b596c10001cacb45ef15d448030c457ebd3afda7b4e19522c4fc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6661777a616e6d2f6c61726176656c2d70757368792d6e6f74696669636174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/fawzanm/laravel-pushy-notification)

This package makes it easy to send notifications using [Pushy](https://pushy.me/docs/) with Laravel 5.5+, 6.0 and 7.0

Send push notifications to devices by hitting up [Pushy](https://pushy.me/docs/) REST API from your laravel app.

Contents
--------

[](#contents)

- [Installation](#installation)
    - [Setting up the Pushy service](#setting-up-the-Pushy-service)
- [Usage](#usage)
    - [Available Message methods](#available-message-methods)
- [Changelog](#changelog)
- [Testing](#testing)
- [Security](#security)
- [Contributing](#contributing)
- [Credits](#credits)
- [License](#license)

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

[](#installation)

```
composer require fawzanm/laravel-pushy-notification

```

Manually registering the service provider?

```
// config/app.php
'providers' => [
    ...
        \Fawzanm\Pushy\PushyServiceProvider::class,
    ...
];

```

- Obtain a PUSHY\_API\_KEY from [Pushy](https://pushy.me/docs/) by creating an app
- Add an entry in your `config/services.php` and an entry in `.env` file as `PUSHY_API_KEY=your_api_key`. You can replace the `default-api-key` with your key if you are not using an environment file.

```
'pushy' => [ 'key' => env('PUSHY_API_KEY','default-api-key') ]

```

### Setting up the Pushy service

[](#setting-up-the-pushy-service)

[Pushy](https://pushy.me/docs/) has a great documentation you can follow. Be sure to check it out.

Example Usage
-------------

[](#example-usage)

Use Artisan to create a notification:

```
php artisan make:notification SomeNotification
```

Return `[pushy]` in the `public function via($notifiable)` method of your notification:

```
public function via($notifiable)
{
    return ['pushy'];
}
```

Add the method `public function toPushy($notifiable)` to your notification, and return an instance of `PushyMessage`:

```
use Fawzanm\Pushy\PushyMessage;
...

public function toPushy($notifiable)
{
    $message = new PushyMessage();
    $message->notification([
               'body' => 'Hello, World..',
               'badge' => 1,
               'sound' => 'ping.aiff'
           ])->data([
               'type' => 'notification',
           ]);
    return $message;
}
```

When sending to specific device, make sure your notifiable entity has `routeNotificationForPushy` method defined:

```
   /**
     * Route notifications for the Pushy channel.
     *
     * @param \Illuminate\Notifications\Notification $notification
     * @return string
     */
    public function routeNotificationForPushy($notification)
    {
        return $this->device_token;
    }
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Mohamed Fawzan](https://github.com/:author_username)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance57

Moderate activity, may be stable

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity55

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

Every ~67 days

Total

3

Last Release

2185d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d4655ff25a875b3882d7e658b6049fac408dd667eefdb376d8495de9fe95a28a?d=identicon)[fawzanm](/maintainers/fawzanm)

---

Top Contributors

[![fawzanm](https://avatars.githubusercontent.com/u/2080551?v=4)](https://github.com/fawzanm "fawzanm (16 commits)")

---

Tags

hacktoberfestlaravelnotifications

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/fawzanm-laravel-pushy-notification/health.svg)

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

###  Alternatives

[laravel-notification-channels/telegram

Telegram Notifications Channel for Laravel

1.1k3.4M35](/packages/laravel-notification-channels-telegram)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)[laravel-notification-channels/fcm

FCM (Firebase Cloud Messaging) Notifications Driver for Laravel

5917.0M16](/packages/laravel-notification-channels-fcm)[s-ichikawa/laravel-sendgrid-driver

This library adds a 'sendgrid' mail driver to Laravel.

4139.3M1](/packages/s-ichikawa-laravel-sendgrid-driver)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)

PHPackages © 2026

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