All Projects → dyaa → Laravel-pushover

dyaa / Laravel-pushover

Licence: MIT license
A Laravel wrapper for Pushover. Pushover makes it easy to get real-time notifications on your Android, iPhone, iPad, and Desktop (Pebble, Android Wear, and Apple watches, too!)

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to Laravel-pushover

raspberrypi-boot
simple spring boot application running on raspberry pi measuring data via bmp085 sensor
Stars: ✭ 17 (-65.31%)
Mutual labels:  pushover
laravelmanthra
Laravel Crud Generator, I have working for years and I can tell you... It's all CRUD 💩💩💩
Stars: ✭ 27 (-44.9%)
Mutual labels:  laravel-5-package
laravel-hijri-dates
Hijri dates for Laravel
Stars: ✭ 25 (-48.98%)
Mutual labels:  laravel-5-package
ioBroker.backitup
Backitup enables the cyclical creation of backups of an IoBroker / Homematic installation
Stars: ✭ 43 (-12.24%)
Mutual labels:  pushover
Friendships
a package for Friendships system
Stars: ✭ 45 (-8.16%)
Mutual labels:  laravel-5-package
laratables-demo
Demo of the Laratables package
Stars: ✭ 21 (-57.14%)
Mutual labels:  laravel-5-package
statapush
Stata module for sending push notifications.
Stars: ✭ 15 (-69.39%)
Mutual labels:  pushover
laravel-email-templates
Laravel 5 database driven email templates
Stars: ✭ 23 (-53.06%)
Mutual labels:  laravel-5-package
magister-calendar
📅 Automatically plan your Magister appointments in your Google calendar.
Stars: ✭ 12 (-75.51%)
Mutual labels:  pushover
shaka-php
🎞 Shaka PHP is a library that uses Shaka Packager for DASH and HLS packaging and encryption, supporting Common Encryption for Widevine and other DRM Systems.
Stars: ✭ 63 (+28.57%)
Mutual labels:  laravel-5-package
pushover
Go wrapper for the Pushover API
Stars: ✭ 112 (+128.57%)
Mutual labels:  pushover
two-factor-authentication
Two Factor Authentication for Laravel
Stars: ✭ 21 (-57.14%)
Mutual labels:  laravel-5-package
Laravel-Aramex-SDK
Aramex open source Laravel SDK to integrate with Aramex API's
Stars: ✭ 22 (-55.1%)
Mutual labels:  laravel-5-package
indigo-pushover
Indigo plugin to send push notifications via Pushover.
Stars: ✭ 18 (-63.27%)
Mutual labels:  pushover
laravel-two-factor-authentication
A two-factor authentication package for Laravel >= 8
Stars: ✭ 37 (-24.49%)
Mutual labels:  laravel-5-package
smtp-translator
An SMTP server that converts emails into Pushover notifications.
Stars: ✭ 23 (-53.06%)
Mutual labels:  pushover
chump
Pushover.net client for Node.js
Stars: ✭ 19 (-61.22%)
Mutual labels:  pushover
log
A thin (and fast) PSR-3 logger.
Stars: ✭ 45 (-8.16%)
Mutual labels:  pushover
flash
An easy way for Laravel flash notifications.
Stars: ✭ 14 (-71.43%)
Mutual labels:  laravel-5-package
pycameresp
Motion detection with image notification for Esp32CAM and Esp32 flasher with GUI based on esptool.py.
Stars: ✭ 40 (-18.37%)
Mutual labels:  pushover

Laravel 5 Pushover.net Package

Build Status Latest Stable Version Total Downloads Latest Unstable Version Dependency Status License

A Laravel 5 package for Android and iOS push notification service from https://pushover.net/.

**Please if you found any bug or you have any enhancement, You're so welcomed to open an Issue or make a pull request.

Content


Installation

If you still using laravel 4.1 use the 1.3.0 version

To get the latest version of dyaa/pushover simply require it in your composer.json file.

"dyaa/pushover": "dev-master"

After that, you'll need to run composer update to download the latest Version and updating the autoloader.

Or

composer require dyaa/pushover:dev-master

Once dyaa/pushover is installed, you need to register the Service Provider. To do that open app/config/app.php and add the following to the providers key.

'Dyaa\Pushover\PushoverServiceProvider',

Next you add this facade to app/config/app.php

'Dyaa\Pushover\Facades\Pushover',

To use this in your L5 application:

use Dyaa\Pushover\Facades\Pushover;

Configuration

Create app/config/pushover.php and fill it with your Token and the User Key from https://pushover.net/

return [
    'token' => 'App Token',
    'user_key' => 'User Key',
];

Usage

Now you can use the package like that:

To Set a message (Required)

Pushover::push($title, $message);

To Set a Link (Optional)

Pushover::url($url, $title);

To Set a Callback (Optional)

Pushover::callback($callbackURL);

To Set a Sound (Optional) Supported Notification Sounds https://pushover.net/api#sounds

Pushover::sound($sound);

To Set a Device Name (Optional)

Pushover::device($device);

To Set if the Message should be sent as HTML (Optional) Default is 1

Pushover::html($html);

To Set a Timestamp (Optional) Default is time()

Pushover::timestamp($timestamp);

To Set Priority (Optional) For More Info about Priority https://pushover.net/api#priority

Pushover::priority($priority, $retry, $expire);

To turn the Debug mode (Optional)

Pushover::debug(true);

To Send the Message (Required)

Pushover::send();

All other information will be found in details here https://pushover.net/api


Commands

In the version 1.2.0 and above it supports the Artisan Commands but first make sure that you've done the Configuration correctly.

You can run

php artisan list

and you'll find

pushover
pushover:send               Pushover Command

To send a pushover message you'll be able to use it like this way ( Title and Message are Required )

php artisan pushover:send YourTitle YourMessage

to turn on the debug mode just add

--debug

in the end of the Command line

to set a sound you can add "Optional"

--sound=YourSound

To know the supported sounds from here https://pushover.net/api#sounds

to set a Device name "Optional"

--device=YourDeviceName

to send a URL "Optional"

--url=http://www.example.com/

to set a title for the URL "Optional"

--urltitle=UrlTitle

to set a priority Message you can know more about the Priority Messages from here https://pushover.net/api#priority "Optional"

--priority=1

to set a priority retry (in seconds) Default is 60 "Optional"

--retry=60

to set a priority expire (in seconds) Default is 356 "Optional"

--expire=356

to set if message should be sent as HTML. Default is 1 "Optional" Note: Message body needs to be wrapped in quotes.

--html=1

License

Copyright (c) 2017 Dyaa Eldin Moustafa Licensed under the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].