• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Push Notifications with Pushover

#1
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
Reply

#2
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.
Reply

#3
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.
Reply

#4
@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
Reply

#5
This is awesome! Thank you for sharing it with us
Reply

#6
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
Reply

#7
Very nice, thank you!
You can see things I made with codeigniter here: itart.pro its not overly impressive as I have very little time to learn.
Reply

#8
Very nice. Congrats!
Reply

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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.