Coder Social home page Coder Social logo

pimcore-pushover's Introduction

Pimcore - Pushover Document

Software License

Adds a new Document Type called "Pushover" to send notifications via Pushover. The main reason to implement it as Document is: You can relate it to different kind of objects and use "send" Method to trigger the event.

This Plugin needs at least Pimcore build 3993

Interface

Getting started

  • Download Plugin and place it in your plugins directory
  • Open Extension Manager in Pimcore and enable/install Plugin
  • After Installation within Pimcore Extension Manager, you have to reload Pimcore
  • Open Settings -> Definitions
  • Add "capirussa/pushover-php" : "1.0" to your composer.json and install the requirements

or install it via composer on an existing pimcore installation

composer require dpfaffenbauer/pushover

or for the nightly dev version

composer require dpfaffenbauer/pushover dev-master

Configure Pushover

Open Settings -> Pushover Settings and add your Application Token

Send Pushover Message

Pushover uses Pimcore Placeholders for Title and Message.

See more here https://www.pimcore.org/docs/latest/Development_Tools_and_Details/Placeholders/index.html

$document = \Pimcore\Model\Document::getById(165);

$message = new \Pushover\Message();
$message->setDocument($document);
$message->setParams(
    ["text" => "Pimcore Pushover"]
);
$message->send();

iPhone Push Message

pimcore-pushover's People

Watchers

 avatar  avatar  avatar

pimcore-pushover's Issues

Install via composer not working

Hello,

It seems the install via composer don't work.
I added "minimum-stability": "dev" (at root composer.json)
and running composer require dpfaffenbauer/pimcore-pushover dev-master send me:

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - The requested package dpfaffenbauer/pimcore-pushover could not be found in
 any version, there may be a typo in the package name.

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your min
imum-stability setting
   see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more det
ails.

Improvement: Provide setting to disable SSL Verification

This plugin work great! Really nice to send broadcast message on mobile phone or even desktop.
Thanks a lot again for this nice extension.

During my test, i just encounter one problem, because I was testing from local dev computer.
I find solution here: https://github.com/rickdenhaan/pushover-php
On some servers, usually localhost development servers, you might encounter SSL errors. To skip the SSL validation, call $client->disableSslVerification().

So maybe, an option could add on Pushover settings panel in Pimcore back-end, below the application token, to disable SSL Verification. A checkbox labeled "Disable SSL Verification" for instance.

Actually in lib\Pushover\Message.php, line 137 (https://github.com/dpfaffenbauer/pimcore-pushover/blob/master/lib/Pushover/Message.php#L137), adding $client->disableSslVerification(); resolves my issue.
But i think having it as settings is better.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.