CodeIgniter Forums
Push Notifications with Pushover - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Addins (https://forum.codeigniter.com/forumdisplay.php?fid=34)
+--- Thread: Push Notifications with Pushover (/showthread.php?tid=76897)



Push Notifications with Pushover - MGatner - 06-30-2020

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


RE: Push Notifications with Pushover - Chroma - 07-01-2020

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.


RE: Push Notifications with Pushover - marcogmonteiro - 07-01-2020

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.


RE: Push Notifications with Pushover - MGatner - 07-01-2020

@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


RE: Push Notifications with Pushover - Inc33 - 07-01-2020

This is awesome! Thank you for sharing it with us


RE: Push Notifications with Pushover - MGatner - 07-06-2020

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-code-and-pushover-libraries#php


RE: Push Notifications with Pushover - Leo - 07-06-2020

Very nice, thank you!


RE: Push Notifications with Pushover - marcogmonteiro - 07-07-2020

Very nice. Congrats!


RE: Push Notifications with Pushover - Chroma - 07-08-2020

@MGatner, thanks for the clarification. This might prove to be useful in an upcoming project.