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

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

mmockelyn/pushover
==================

Pushover notifications for Laravel.

06PHP

Since Oct 3Pushed 3y agoCompare

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

READMEChangelogDependenciesVersions (1)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

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity24

Early-stage or recently created project

 Bus Factor1

Top contributor holds 73.1% 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.

### Community

Maintainers

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

---

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)")[![oyed](https://avatars.githubusercontent.com/u/172114265?v=4)](https://github.com/oyed "oyed (2 commits)")[![mpociot](https://avatars.githubusercontent.com/u/804684?v=4)](https://github.com/mpociot "mpociot (2 commits)")[![kapersoft](https://avatars.githubusercontent.com/u/13007854?v=4)](https://github.com/kapersoft "kapersoft (1 commits)")[![mmockelyn](https://avatars.githubusercontent.com/u/8116032?v=4)](https://github.com/mmockelyn "mmockelyn (1 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)")

### Embed Badge

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

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

###  Alternatives

[tijsverkoyen/css-to-inline-styles

CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.

5.8k505.3M228](/packages/tijsverkoyen-css-to-inline-styles)[minishlink/web-push

Web Push library for PHP

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

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[spatie/url-signer

Generate a url with an expiration date and signature to prevent unauthorized access

4422.3M16](/packages/spatie-url-signer)[mattketmo/email-checker

Throwaway email detection library

2742.0M5](/packages/mattketmo-email-checker)[laravel-notification-channels/discord

Laravel notification driver for Discord.

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

PHPackages © 2026

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