PHPackages                             jamie4224/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. jamie4224/pushover

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

jamie4224/pushover
==================

Pushover notifications for Laravel.

3.0.2(4y ago)05MITPHPPHP &gt;=7.3

Since Aug 12Pushed 4y agoCompare

[ Source](https://github.com/Jamie4224/pushover)[ Packagist](https://packagist.org/packages/jamie4224/pushover)[ Docs](https://github.com/Jamie4224/pushover)[ RSS](/packages/jamie4224-pushover/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (5)Versions (18)Used By (0)

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/64c3ff8f21e5fbc94e2fb67624e87f7efa3c90622878e0178d589730b8d37c09/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6c61726176656c2d6e6f74696669636174696f6e2d6368616e6e656c732f707573686f7665722f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/laravel-notification-channels/pushover)[![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)
    - [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');
    }
}
```

Make sure there is a `routeNotificationForPushover` method on your notifiable model, for instance:

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

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)

Please note that only the message content is mandatory, all other methods are optional. The message content can be set via `content('')`, via the create method `PushoverMessage::create('')` or via the constructor `new PushoverMessage('')`.

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).`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).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

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 71% 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 ~129 days

Recently: every ~190 days

Total

17

Last Release

1492d 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

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

2.0.0PHP &gt;=7.2

3.0.0PHP &gt;=7.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/69563720f08b30337444116cc7e4450b5a5866281023cb3b22fc88bd4c0c1b4c?d=identicon)[Jamie4224](/maintainers/Jamie4224)

---

Top Contributors

[![casperboone](https://avatars.githubusercontent.com/u/15815208?v=4)](https://github.com/casperboone "casperboone (49 commits)")[![freekmurze](https://avatars.githubusercontent.com/u/483853?v=4)](https://github.com/freekmurze "freekmurze (5 commits)")[![Jamie4224](https://avatars.githubusercontent.com/u/11806636?v=4)](https://github.com/Jamie4224 "Jamie4224 (3 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)")[![styxit](https://avatars.githubusercontent.com/u/1370548?v=4)](https://github.com/styxit "styxit (1 commits)")[![themsaid](https://avatars.githubusercontent.com/u/4332182?v=4)](https://github.com/themsaid "themsaid (1 commits)")[![Cannonb4ll](https://avatars.githubusercontent.com/u/3110750?v=4)](https://github.com/Cannonb4ll "Cannonb4ll (1 commits)")[![vmitchell85](https://avatars.githubusercontent.com/u/1248035?v=4)](https://github.com/vmitchell85 "vmitchell85 (1 commits)")[![CmdrSharp](https://avatars.githubusercontent.com/u/5938745?v=4)](https://github.com/CmdrSharp "CmdrSharp (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)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jamie4224-pushover/health.svg)

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

###  Alternatives

[minishlink/web-push

Web Push library for PHP

1.9k12.0M53](/packages/minishlink-web-push)[laravel-notification-channels/telegram

Telegram Notifications Channel for Laravel

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

Push notification SDK(AnPush、Bark、Chanify、DingTalk、Discord、Gitter、GoogleChat、IGot、Lark、Mattermost、MicrosoftTeams、NowPush、Ntfy、Push、Pushback、PushBullet、PushDeer、PushMe、Pushover、PushPlus、QQ、RocketChat、ServerChan、ShowdocPush、SimplePush、Slack、Telegram、WeWork、WPush、XiZhi、YiFengChuanHua、ZohoCliq、ZohoCliqWebHook、Zulip).

682104.9k7](/packages/guanguans-notify)

PHPackages © 2026

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