PHPackages                             laravel-notification-channels/pushover - 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. laravel-notification-channels/pushover

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

laravel-notification-channels/pushover
======================================

Pushover notifications for Laravel.

5.0.0(2mo ago)61141.6k↓19.5%322MITPHPPHP ^8.2CI passing

Since Aug 12Pushed 8mo ago3 watchersCompare

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

READMEChangelog (10)Dependencies (12)Versions (24)Used By (2)

Pushover notifications channel for Laravel
==========================================

[](#pushover-notifications-channel-for-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/5596eb4acc4bfaea02886861dc26baef99f2f145e15747e2fedc4c954e68d6df/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c61726176656c2d6e6f74696669636174696f6e2d6368616e6e656c732f707573686f7665722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/laravel-notification-channels/pushover)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/ecfb59d09942cf5cfdc9bc1197cacf2dcf484e1723c2027f535c656182821a71/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6c61726176656c2d6e6f74696669636174696f6e2d6368616e6e656c732f707573686f7665722f746573742e796d6c3f7374796c653d666c61742d737175617265)](https://github.com/laravel-notification-channels/pushover/actions)[![StyleCI](https://camo.githubusercontent.com/73b824ef8265620995a32c603dcbf26c10c4ade3f3a6040d7eed4f27e6e841b6/68747470733a2f2f7374796c6563692e696f2f7265706f732f36353534333439372f736869656c64)](https://styleci.io/repos/65543497)[![Quality Score](https://camo.githubusercontent.com/86d5fda7922147db79e8d1536b1feafb5b5dedfce9d81372080a36a2c4c2a208/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6c61726176656c2d6e6f74696669636174696f6e2d6368616e6e656c732f707573686f7665722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/laravel-notification-channels/pushover)[![Code Coverage](https://camo.githubusercontent.com/d94a07baa38476e795bf56fc68e5b0a44421740fcf31e0485da5964e3a366abc/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6c61726176656c2d6e6f74696669636174696f6e2d6368616e6e656c732f707573686f7665722f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/laravel-notification-channels/pushover/?branch=master)[![Total Downloads](https://camo.githubusercontent.com/845c521570133ab825438384ad496159a9a0732fe9a320e400c77adfa13b8241/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c61726176656c2d6e6f74696669636174696f6e2d6368616e6e656c732f707573686f7665722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/laravel-notification-channels/pushover)

This package makes it easy to send Pushover notifications with Laravel Notifications.

Contents
--------

[](#contents)

- [Installation](#installation)
    - [Setting up your Pushover account](#setting-up-your-pushover-account)
- [Usage](#usage)
    - [Advanved usage and configuration](#advanced-usage-and-configuration)
    - [Available Message methods](#available-message-methods)
- [Changelog](#changelog)
- [Testing](#testing)
- [Security](#security)
- [Contributing](#contributing)
- [Credits](#credits)
- [License](#license)

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

[](#installation)

You can install the package via composer:

```
composer require laravel-notification-channels/pushover

```

### Setting up your Pushover account

[](#setting-up-your-pushover-account)

To start sending messages via Pushover, you have to [register an application](https://pushover.net/apps/build). Add the generated Pushover application token to the services config file:

```
// config/services.php
'pushover' => [
    'token' => 'YOUR_APPLICATION_TOKEN',
],

```

Usage
-----

[](#usage)

Now you can use the channel in your `via()` method inside the notification as well as send a push notification:

```
use NotificationChannels\Pushover\PushoverChannel;
use NotificationChannels\Pushover\PushoverMessage;
use Illuminate\Notifications\Notification;

class AccountApproved extends Notification
{
    public function via($notifiable)
    {
        return [PushoverChannel::class];
    }

    public function toPushover($notifiable)
    {
        return PushoverMessage::create('The invoice has been paid.')
            ->title('Invoice paid')
            ->sound('incoming')
            ->lowPriority()
            ->url('http://example.com/invoices', 'Go to your invoices');
    }
}

```

To send Pushover notifications to the notifiable entity, add the `routeNotificationForPushover` method to that model. Usually, this is the User model. The `pushover_key` could be a database field and editable by the user itself.

```
public function routeNotificationForPushover()
{
    return $this->pushover_key;
}

```

### Advanced usage and configuration

[](#advanced-usage-and-configuration)

If you want to specify specific devices, you can return a `PushoverReceiver` object.

```
public function routeNotificationForPushover() {
    return PushoverReceiver::withUserKey('pushover-key')
        ->toDevice('iphone')
        ->toDevice('desktop')
        // or, if you prefer:
        ->toDevice(['iphone', 'desktop']);
}

```

If you want to (dynamically) overrule the application token from the services config, e.g. because each user holds their own application token, return a `PushoverReceiver` object like this:

```
public function routeNotificationForPushover() {
    return PushoverReceiver::withUserKey('pushover-key')
        ->withApplicationToken('app-token');
}

```

You can also send a message to a Pushover group:

```
public function routeNotificationForPushover() {
    return PushoverReceiver::withGroupKey('pushover-group-key');
}

```

### Available Message methods

[](#available-message-methods)

MethodDescription`content($message)`Accepts a string value for the message text.`html()`Sets the message type to [HTML](https://pushover.net/api#html).`monospace()`Sets the message type to monospace.`plain()`Sets the message type to plain text, this is the default.`title($title)`Accepts a string value for the message title.`time($timestamp)`Accepts either a `Carbon` object or a UNIX timestamp.`url($url[, $title])`Accepts a string value for a [supplementary url](https://pushover.net/api#urls) and an optional string value for the title of the url.`sound($sound)`Accepts a string value for the [notification sound](https://pushover.net/api#sounds).`image($image)`Accepts a string value for the image location (either full or relative server path or a URL). If there is any error with the file (too big, not an image) it will silently send the message without the image attachment.`priority($priority[, $retryTimeout, $expireAfter])`Accepts an integer value for the priority and, when the priority is set to emergency, also an integer value for the retry timeout and expiry time (in seconds). Priority values are available as constants`lowestPriority()`Sets the priority to the lowest priority.`lowPriority()`Sets the priority to low.`normalPriority()`Sets the priority to normal.`highPriority()`Sets the priority to high.`emergencyPriority($retryTimeout, $expireAfter)`Sets the priority to emergency and accepts integer values for the retry timeout and expiry time (in seconds).`callback($callbackUrl)`Sets a publicly-accessible URL that Pushover will send a request to when the user has acknowledged your notification for an emergency notification.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)

- [Casper Boone](https://github.com/casperboone)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

63

—

FairBetter than 99% of packages

Maintenance72

Regular maintenance activity

Popularity49

Moderate usage in the ecosystem

Community31

Small or concentrated contributor base

Maturity85

Battle-tested with a long release history

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~182 days

Total

21

Last Release

61d ago

Major Versions

0.0.2 → 1.0.02016-08-25

1.2.3 → 2.0.02019-06-12

2.1.2 → 3.0.02020-09-13

3.1.0 → 4.0.02024-03-20

4.1.2 → 5.0.02026-03-18

PHP version history (6 changes)0.0.1PHP &gt;=5.6.4

2.0.0PHP &gt;=7.2

3.0.0PHP &gt;=7.3

3.1.0PHP ^8.0

4.0.0PHP ^8.1

5.0.0PHP ^8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/20937037?v=4)[Laravel Notification Channels](/maintainers/laravel-notification-channels)[@laravel-notification-channels](https://github.com/laravel-notification-channels)

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

---

Top Contributors

[![Kovah](https://avatars.githubusercontent.com/u/1816101?v=4)](https://github.com/Kovah "Kovah (54 commits)")[![casperboone](https://avatars.githubusercontent.com/u/15815208?v=4)](https://github.com/casperboone "casperboone (49 commits)")[![laravel-shift](https://avatars.githubusercontent.com/u/15991828?v=4)](https://github.com/laravel-shift "laravel-shift (8 commits)")[![boryn](https://avatars.githubusercontent.com/u/807297?v=4)](https://github.com/boryn "boryn (7 commits)")[![freekmurze](https://avatars.githubusercontent.com/u/483853?v=4)](https://github.com/freekmurze "freekmurze (5 commits)")[![atymic](https://avatars.githubusercontent.com/u/50683531?v=4)](https://github.com/atymic "atymic (2 commits)")[![mpociot](https://avatars.githubusercontent.com/u/804684?v=4)](https://github.com/mpociot "mpociot (2 commits)")[![oyed](https://avatars.githubusercontent.com/u/172114265?v=4)](https://github.com/oyed "oyed (2 commits)")[![stijnbernards](https://avatars.githubusercontent.com/u/6909174?v=4)](https://github.com/stijnbernards "stijnbernards (2 commits)")[![CmdrSharp](https://avatars.githubusercontent.com/u/5938745?v=4)](https://github.com/CmdrSharp "CmdrSharp (1 commits)")[![Cannonb4ll](https://avatars.githubusercontent.com/u/3110750?v=4)](https://github.com/Cannonb4ll "Cannonb4ll (1 commits)")[![styxit](https://avatars.githubusercontent.com/u/1370548?v=4)](https://github.com/styxit "styxit (1 commits)")[![nicolasbeauvais](https://avatars.githubusercontent.com/u/2951704?v=4)](https://github.com/nicolasbeauvais "nicolasbeauvais (1 commits)")[![themsaid](https://avatars.githubusercontent.com/u/4332182?v=4)](https://github.com/themsaid "themsaid (1 commits)")[![SamuelNitsche](https://avatars.githubusercontent.com/u/24483576?v=4)](https://github.com/SamuelNitsche "SamuelNitsche (1 commits)")[![vmitchell85](https://avatars.githubusercontent.com/u/1248035?v=4)](https://github.com/vmitchell85 "vmitchell85 (1 commits)")[![dyusha](https://avatars.githubusercontent.com/u/8942108?v=4)](https://github.com/dyusha "dyusha (1 commits)")[![hxnk](https://avatars.githubusercontent.com/u/1008127?v=4)](https://github.com/hxnk "hxnk (1 commits)")[![kapersoft](https://avatars.githubusercontent.com/u/13007854?v=4)](https://github.com/kapersoft "kapersoft (1 commits)")

---

Tags

laravelpushoverpushover-notificationspushover-notifications-channel

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/laravel-notification-channels-pushover/health.svg)

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

###  Alternatives

[laravel-notification-channels/telegram

Telegram Notifications Channel for Laravel

1.1k3.4M35](/packages/laravel-notification-channels-telegram)[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/microsoft-teams

A Laravel Notification Channel for Microsoft Teams

1603.0M7](/packages/laravel-notification-channels-microsoft-teams)[laravel-notification-channels/discord

Laravel notification driver for Discord.

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

Amazon Simple Notification Service (AWS SNS) notification channel for Laravel.

541.1M2](/packages/laravel-notification-channels-aws-sns)

PHPackages © 2026

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