定制 jolicode/jolinotif 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

jolicode/jolinotif

最新稳定版本:v3.3.0

Composer 安装命令:

composer require jolicode/jolinotif

包简介

Send desktop notifications on Windows, Linux, MacOS.

README 文档

README

JoliNotif
JoliNotif
Display desktop notifications from your PHP scripts.

Total Downloads Latest Stable Version Latest Unstable Version

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

JoliNotif demo

Requires PHP >= 8.2 (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:

And finally some meta documentation:

Credits

License

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



JoliCode is sponsoring this project

统计信息

  • 总下载量: 10.88M
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1441
  • 点击次数: 3
  • 依赖项目数: 45
  • 推荐数: 2

GitHub 信息

  • Stars: 1434
  • Watchers: 46
  • Forks: 98
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固