CodeIgniter Forums

Full Version: Push Notifications with Pushover
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all- I've been working evening this week to get this one out. If you've never used Pushover, it's an awesome service that brings Push Notifications to any platform. They have a really accessible API that I use for everything from user notifications to server outage reports. Today I bring you:

Tatter\Pushover
Pushover integration for CodeIgniter 4

Quick Start

1. Install with Composer: > composer require tatter/pushover
2. Add credentials to .env or Config/Pushover.php
3. Send an alert: service('pushover')->message(['message' => 'Hello world'])->send();



That easy! This module also supports Pushover's latest API addition, image attachments. More endpoints will be added as there is interest.
As always I welcome any feedback, suggestions, questions. Please submit formal issues or requests on GitHub.

Packagist: https://packagist.org/packages/tatter/pushover
GitHub: https://github.com/tattersoftware/codeigniter4-pushover

I should probably have supplied these as well:

Pushover - https://pushover.net
Pushover API docs - https://pushover.net/api
His MGatner,

This looks like a useful library and I can see it being very useful for having a web app/system and use their service to notify the dev or manager of new orders, service issues etc.

The Pushover service seems to be designed for notifications to me, rather than to my clients or users.

Very useful potentially and cost effective too.

Thanks.

I can see me using this on an upcoming project.
This looks great, I have used pushover with laravel in the past and even with ci3. Haven't had the need for it with ci4 yet. Thanks mate.
@Chroma you can definitely use it either way - I have done both. If you want to offer notifications to your users you collect their token and secret and store them in the database, then send using those credentials instead of your system config. Pushover also offers bulk license purchases so you can buy a pack and assign tokens that you distribute to your users, rather then making them set it up themselves.

@marco thanks for the feedback! This is actually a port from my CI3 Pushover Helper. It was much more basic but I used it pretty heavily in CI3 so I’m glad to have this ready for 4 now
This is awesome! Thank you for sharing it with us
We're official! Made the docs:


Quote:A 3rd party codeigniter4-pushover package for the CodeIgniter 4 framework written by Tatter Software is also available.

https://support.pushover.net/i44-example...raries#php
Very nice, thank you!
Very nice. Congrats!
@MGatner, thanks for the clarification. This might prove to be useful in an upcoming project.