Send desktop notifications on Windows, Linux, MacOS.

Fund package maintenance!

Installs: 6 373 688

Dependents: 40

Suggesters: 1

Security: 0

Stars: 1 326

Watchers: 47

Forks: 87

Open Issues: 0

v2.7.2 2024-06-01 06:05 UTC


JoliNotif demo

Total Downloads Latest Stable Version Latest Unstable Version

About JoliNotif

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

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).


This library can not be used in a web context (FPM or equivalent). Use it in your CLI scripts or in a CRON


Use Composer to install JoliNotif in your project:

composer require "jolicode/jolinotif"


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')
    ->addOption('subtitle', 'This is a subtitle') // Only works on macOS (AppleScriptDriver)
    ->addOption('sound', 'Frog') // Only works on macOS (AppleScriptDriver)

// Send it

A shell executable is also provided to use JoliNotif from CLI:

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

Further documentation

Discover more by reading the docs:

You can see the current and past versions using one of the following:

And finally some meta documentation:



JoliNotif is licensed under the MIT License - see the LICENSE file for details.