xiebruce / php-notification
Send notifications on Windows7/10 / macOS / Linux Desktop with php.
Installs: 78
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/xiebruce/php-notification
Requires
- php: >7.0
This package is auto-updated.
Last update: 2025-12-12 19:34:57 UTC
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');