jolicode / jolinotif
Send desktop notifications on Windows, Linux, MacOS.
Fund package maintenance!
Requires
- php: >=8.3
- jolicode/php-os-helper: ^0.3
- psr/log: ^1.0 || ^2.0 || ^3.0
- symfony/process: ^6.4 || ^7.3 || ^8.0
Requires (Dev)
- monolog/monolog: ^3.9
- phpunit/phpunit: ^12.4.5
- symfony/finder: ^6.4 || ^7.3 || ^8.0
Suggests
- ext-ffi: Needed to send notifications via libnotify on Linux
Provides
None
Conflicts
None
Replaces
None
- dev-main / 3.x-dev
- v3.4.0
- v3.3.1
- v3.3.0
- v3.2.0
- v3.1.1
- v3.1.0
- v3.0.0
- v2.7.3
- v2.7.2
- v2.7.1
- v2.7.0
- v2.6.0
- v2.5.2
- v2.5.1
- v2.5.0
- v2.4.0
- v2.3.0
- v2.2.0
- v2.1.0
- v2.0.2
- v2.0.1
- v2.0.0
- v1.3.0
- v1.2.0
- v1.1.2
- v1.1.1
- v1.1.0
- v1.0.5
- v1.0.4
- v1.0.3
- v1.0.2
- v1.0.1
- v1.0
- dev-remove-old-windows-growl
- dev-pyrech/audit-repo-cleanup
This package is auto-updated.
Last update: 2026-09-10 09:27:10 UTC
README
JoliNotif
Display desktop notifications from your PHP scripts.
JoliNotif is a cross-platform PHP library to display desktop notifications. It works on Linux, Windows (WSL included) or macOS.
Requires PHP >= 8.3 (support for previous PHP versions was available in older releases of this library).
Note
This library can not be used in a web context (FPM or equivalent). Use it in your CLI scripts or in a CRON
Installation
Use Composer to install JoliNotif in your project:
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:
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:
- the
git tagcommand - the releases page on Github
- the file listing the changes between versions
And finally some meta documentation:
Credits
- All contributors
- This project was originally inspired by mikaelbr/node-notifier
License
JoliNotif is licensed under the MIT License - see the LICENSE file for details.
