2017 © Pedro Peláez
 

library jolinotif

Send desktop notifications on Windows, Linux, MacOS.

image

jolicode/jolinotif

Send desktop notifications on Windows, Linux, MacOS.

  • Monday, July 16, 2018
  • by pyrech
  • Repository
  • 52 Watchers
  • 875 Stars
  • 78,736 Installations
  • PHP
  • 23 Dependents
  • 1 Suggesters
  • 58 Forks
  • 2 Open issues
  • 17 Versions
  • 20 % Grown

The README.md

JoliNotif demo , (*1)

Total Downloads Latest Stable Version Latest Unstable Version , (*2)

About JoliNotif

JoliNotif is a cross-platform PHP library to display desktop notifications. It works on Linux, Windows or macOS., (*3)

Requires PHP >= 8.1 (support for PHP 5 was available in version 1.x, for PHP 7.0 and 7.1 in version < 2.1.0, for PHP 7.2 and 7.3 in version < 2.4.0, for PHP < 8.0 in version 2.6.0)., (*4)

[!NOTE] This library can not be used in a web context (FPM or equivalent). Use it in your CLI scripts or in a CRON, (*5)

Installation

Use Composer to install JoliNotif in your project:, (*6)

composer require "jolicode/jolinotif"

Usage

include __DIR__.'/vendor/autoload.php';

use Joli\JoliNotif\Notification;
use Joli\JoliNotif\DefaultNotifier;

$notifier = new DefaultNotifier();

// Create your notification
$notification =
    (new Notification())
    ->setTitle('Notification title')
    ->setBody('This is the body of your notification')
    ->setIcon(__DIR__.'/path/to/your/icon.png')
    ->addOption('subtitle', 'This is a subtitle') // Only works on macOS (AppleScriptDriver)
    ->addOption('sound', 'Frog') // Only works on macOS (AppleScriptDriver & TerminalNotifierDriver)
;

// Send it
$notifier->send($notification);

A shell executable is also provided to use JoliNotif from CLI:, (*7)

jolinotif --title "Hello" --body "World"

Further documentation

Discover more by reading the docs:, (*8)

You can see the current and past versions using one of the following:, (*9)

And finally some meta documentation:, (*10)

Credits

License

JoliNotif is licensed under the MIT License - see the LICENSE file for details., (*11)

The Versions

16/07 2018

dev-master

9999999-dev

Send desktop notifications on Windows, Linux, MacOS.

  Sources   Download

MIT

The Requires

 

The Development Requires

notification windows mac linux growl

16/07 2018

dev-feature/windows-subsystem-linux

dev-feature/windows-subsystem-linux

Send desktop notifications on Windows, Linux, MacOS.

  Sources   Download

MIT

The Requires

 

The Development Requires

notification windows mac linux growl

04/04 2018

v2.0.1

2.0.1.0

Send desktop notifications on Windows, Linux, MacOS.

  Sources   Download

MIT

The Requires

 

The Development Requires

notification windows mac linux growl

12/02 2018

v2.0.0

2.0.0.0

Send desktop notifications on Windows, Linux, MacOS.

  Sources   Download

MIT

The Requires

 

The Development Requires

notification windows mac linux growl

12/02 2018

dev-feature/bump-all-the-dependencies

dev-feature/bump-all-the-dependencies

Send desktop notifications on Windows, Linux, MacOS.

  Sources   Download

MIT

The Requires

 

The Development Requires

notification windows mac linux growl

25/01 2018

v1.3.0

1.3.0.0

Send desktop notifications on Windows, Linux, MacOS.

  Sources   Download

MIT

The Requires

 

The Development Requires

notification windows mac linux growl

17/07 2017

v1.2.0

1.2.0.0

Send desktop notifications on Windows, Linux, MacOS.

  Sources   Download

MIT

The Requires

 

The Development Requires

notification windows mac linux growl

13/07 2017

v1.1.2

1.1.2.0

Send desktop notifications on Windows, Linux, MacOS.

  Sources   Download

MIT

The Requires

 

The Development Requires

notification windows mac linux growl

03/06 2017

v1.1.1

1.1.1.0

Send desktop notifications on Windows, Linux, MacOS.

  Sources   Download

MIT

The Requires

 

The Development Requires

notification windows mac linux growl

04/04 2017

v1.1.0

1.1.0.0

Send desktop notifications on Windows, Linux, MacOS.

  Sources   Download

MIT

The Requires

 

The Development Requires

notification windows mac linux growl

22/03 2016

v1.0.5

1.0.5.0

Send desktop notifications on Windows, Linux, MacOS.

  Sources   Download

MIT

The Requires

 

The Development Requires

notification windows mac linux growl

20/06 2015

v1.0.4

1.0.4.0

Send desktop notifications on Windows, Linux, MacOS.

  Sources   Download

MIT

The Requires

 

The Development Requires

notification windows mac linux growl

18/06 2015

dev-fix/utf8

dev-fix/utf8

Send desktop notifications on Windows, Linux, MacOS.

  Sources   Download

MIT

The Requires

 

The Development Requires

notification windows mac linux growl

03/06 2015

v1.0.3

1.0.3.0

Send desktop notifications on Windows, Linux, MacOS.

  Sources   Download

MIT

The Requires

 

The Development Requires

notification windows mac linux growl

13/04 2015

v1.0.2

1.0.2.0

Send desktop notifications on Windows, Linux, MacOS.

  Sources   Download

MIT

The Requires

 

The Development Requires

notification windows mac linux growl

01/04 2015

v1.0.1

1.0.1.0

Send desktop notifications on Windows, Linux, MacOS.

  Sources   Download

MIT

The Requires

 

The Development Requires

notification windows mac linux growl

20/03 2015

v1.0

1.0.0.0

Send desktop notifications on Windows, Linux, MacOS.

  Sources   Download

MIT

The Requires

 

The Development Requires

notification windows mac linux growl