2017 © Pedro Peláez
 

library dbus-notify

D-Bus Notification Library for Derick Rethans D-Bus PHP extension

image

todorowww/dbus-notify

D-Bus Notification Library for Derick Rethans D-Bus PHP extension

  • Saturday, April 28, 2018
  • by todorowww
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

License Packagist Version GitHub Release, (*1)

D-Bus Notify

This class utilizes PHP extension D-Bus by Derick Rethans. In order to use this class, you need this extension., (*2)

You can get it from nephre, and you can find compilation instructions there., (*3)

Installation

Install the latest version of this library by issuing this command, (*4)

composer require todorowww/dbus-notify

Basic Usage

use todorowww\DBusNotify;

// Instantiate DBusNotify class
$Notify = new DBusNotify();

$icon = "path/to/your/desired/icon.png";
$summary = "Notification message summary (title)";
$body = "Notification message body";
$Notify->notify($appName, $icon, $summary, $body);

Responding to actions

use todorowww\DBusNotify;

// Instantiate DBusNotify class
$Notify = new DBusNotify();

$icon = "path/to/your/desired/icon.png";
$summary = "Notification message summary (title)";
$body = "Notification message body";
$actions = [
    "ok" => "OK",
    "cancel" => "Cancel"
];
$Notify->notify($appName, $icon, $summary, $body, $actions);
$Notify->waitForAction(myCallback, 30); // Wait for 30 seconds before timing out

When user clicks on a button, or closes the notification, myCallback will be triggered. Action info will be passed as a parameter of the function., (*5)

The Versions

28/04 2018

dev-master

9999999-dev https://github.com/todorowww/dbus-notify

D-Bus Notification Library for Derick Rethans D-Bus PHP extension

  Sources   Download

MIT

The Requires

  • php >=5.5.0
  • lib-libxml *
  • ext-xml *
  • ext-dbus *

 

notify dbus d-bus php-dbus

28/04 2018

0.3

0.3.0.0 https://github.com/todorowww/dbus-notify

D-Bus Notification Library for Derick Rethans D-Bus PHP extension

  Sources   Download

MIT

The Requires

  • php >=5.5.0
  • lib-libxml *
  • ext-xml *
  • ext-dbus *

 

notify dbus d-bus php-dbus

27/04 2018

0.1

0.1.0.0 https://github.com/todorowww/dbus-notify

D-Bus Notification Library for Derick Rethans D-Bus PHP extension

  Sources   Download

MIT

The Requires

  • php >=5.5.0
  • lib-libxml *
  • ext-xml *
  • ext-dbus *

 

notify dbus d-bus php-dbus