xiebruce/php-notification
Composer 安装命令:
composer require xiebruce/php-notification
包简介
Send notifications on Windows7/10 / macOS / Linux Desktop with php.
README 文档
README
Send notifications on Windows7/10 / macOS / Linux Desktop with php.
Install
composer require xiebruce/php-notification
Usage
require 'vendor/autoload.php'; use Notification\Notification; // subtitle only supported on macOS. $config = [ 'success' => [ 'title' => 'Upload succeed', 'subtitle' => 'Upload succeed', 'message' => 'You can paste url directly.', ], 'failed' => [ 'title' => 'Upload failed', 'subtitle' => 'Upload failed', 'message' => 'Sorry, Upload failed.', ], 'no_image' => [ 'title' => 'No image', 'subtitle' => 'No image was dected on the clipboard', 'message' => 'No image was detected on the clipboard, Please take a screenshot first.', ], ]; $notify = new Notification($config); $notify->send('success');
Demonstration
统计信息
- 总下载量: 78
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-09-11