A cross-platform PHP library to send desktop notifications from CLI scripts and CRON jobs.
JoliNotif is a PHP library that enables developers to display desktop notifications directly from their command-line scripts. It provides a unified API to send notifications across Linux, Windows (including WSL), and macOS systems, making it ideal for background tasks and automated processes.
PHP developers building command-line scripts, scheduled tasks (CRON), or automated processes that need to notify users on their desktop environment.
Developers choose JoliNotif because it offers a lightweight, dependency-free solution with cross-platform support and a simple API specifically designed for CLI contexts, unlike web-focused notification libraries.
🖥️ Send notifications to your desktop directly from your PHP script
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Works seamlessly on Linux, Windows (including WSL), and macOS with OS-specific drivers, as stated in the README's platform support list.
Offers an easy-to-use PHP interface with methods like setTitle() and setBody(), demonstrated in the usage example for quick integration.
Provides a shell executable (jolinotif) to send notifications directly from the command line, enhancing usability in scripts without writing PHP code.
Specifically documented for scheduled tasks and automated scripts, making it ideal for background processes like CRON jobs, as highlighted in the README note.
Explicitly cannot be used in web contexts such as PHP-FPM, limiting its application to CLI-only scenarios and excluding server-side web projects.
Certain features like subtitle and sound options only function on macOS (e.g., with AppleScriptDriver), reducing cross-platform consistency for advanced use cases.
Requires PHP >= 8.2, which may force upgrades for older systems or exclude legacy projects without compatibility for previous versions.
Focuses on simple notifications with title, body, and icon, lacking advanced capabilities such as interactive elements or rich media support found in more comprehensive libraries.