PHPackages                             xiebruce/php-notification - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. xiebruce/php-notification

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

xiebruce/php-notification
=========================

Send notifications on Windows7/10 / macOS / Linux Desktop with php.

v0.1(6y ago)678MITPHPPHP &gt;7.0

Since Sep 12Pushed 6y ago1 watchersCompare

[ Source](https://github.com/xiebruce/php-notification)[ Packagist](https://packagist.org/packages/xiebruce/php-notification)[ RSS](/packages/xiebruce-php-notification/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (2)Used By (0)

php-notification
================

[](#php-notification)

Send notifications on Windows7/10 / macOS / Linux Desktop with php.

Install
-------

[](#install)

```
composer require xiebruce/php-notification
```

Usage
-----

[](#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
-------------

[](#demonstration)

[macOS](https://img.xiebruce.top/2019/09/12/7e2fb81428050854cb94c5f81b2bb906.gif): [![notification-macOS](https://camo.githubusercontent.com/bbfeb7d3f69442823865c66c09d35a33b950dbd966a040e3e96109b58f6a388f/68747470733a2f2f696d672e78696562727563652e746f702f323031392f30392f31322f37653266623831343238303530383534636239346335663831623262623930362e676966)](https://camo.githubusercontent.com/bbfeb7d3f69442823865c66c09d35a33b950dbd966a040e3e96109b58f6a388f/68747470733a2f2f696d672e78696562727563652e746f702f323031392f30392f31322f37653266623831343238303530383534636239346335663831623262623930362e676966)

[Windows 10](https://img.xiebruce.top/2019/09/12/ce9465d704af6eca74949eaee71646d2.gif): [![notification-Win10](https://camo.githubusercontent.com/7563402b4318f4618786d46f2eedbbdc0ba86b7387eef7b09d132ae319a64b65/68747470733a2f2f696d672e78696562727563652e746f702f323031392f30392f31322f63653934363564373034616636656361373439343965616565373136343664322e676966)](https://camo.githubusercontent.com/7563402b4318f4618786d46f2eedbbdc0ba86b7387eef7b09d132ae319a64b65/68747470733a2f2f696d672e78696562727563652e746f702f323031392f30392f31322f63653934363564373034616636656361373439343965616565373136343664322e676966)

[Windows 7](https://img.xiebruce.top/2019/09/12/69e2655ad3b2666b31684a4d370e02c7.gif): [![notification-Win7](https://camo.githubusercontent.com/f715050a6d50cfb5be8955ebf63f4ee886dcd8fb3baddf46cb974c3a3d6ded81/68747470733a2f2f696d672e78696562727563652e746f702f323031392f30392f31322f36396532363535616433623236363662333136383461346433373065303263372e676966)](https://camo.githubusercontent.com/f715050a6d50cfb5be8955ebf63f4ee886dcd8fb3baddf46cb974c3a3d6ded81/68747470733a2f2f696d672e78696562727563652e746f702f323031392f30392f31322f36396532363535616433623236363662333136383461346433373065303263372e676966)

[Linux(Ubuntu 18.04)](https://img.xiebruce.top/2019/09/12/d23ae77d6a0baa55910b41235eab6435.gif): [![notification-Ubuntu](https://camo.githubusercontent.com/ae4ebf6b919eb8121dbd43206298e72d91834706f13864fd818f55577696357f/68747470733a2f2f696d672e78696562727563652e746f702f323031392f30392f31322f64323361653737643661306261613535393130623431323335656162363433352e676966)](https://camo.githubusercontent.com/ae4ebf6b919eb8121dbd43206298e72d91834706f13864fd818f55577696357f/68747470733a2f2f696d672e78696562727563652e746f702f323031392f30392f31322f64323361653737643661306261613535393130623431323335656162363433352e676966)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2437d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7e71f6e58fa66977da09df0a8502b4fd538ea82f92a02b5fda9c55813671861f?d=identicon)[xiebruce](/maintainers/xiebruce)

---

Top Contributors

[![xiebruce](https://avatars.githubusercontent.com/u/13575500?v=4)](https://github.com/xiebruce "xiebruce (9 commits)")

### Embed Badge

![Health badge](/badges/xiebruce-php-notification/health.svg)

```
[![Health](https://phpackages.com/badges/xiebruce-php-notification/health.svg)](https://phpackages.com/packages/xiebruce-php-notification)
```

###  Alternatives

[tijsverkoyen/css-to-inline-styles

CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.

5.8k505.3M227](/packages/tijsverkoyen-css-to-inline-styles)[minishlink/web-push

Web Push library for PHP

1.9k12.0M53](/packages/minishlink-web-push)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[spatie/url-signer

Generate a url with an expiration date and signature to prevent unauthorized access

4422.3M16](/packages/spatie-url-signer)[mattketmo/email-checker

Throwaway email detection library

2742.0M5](/packages/mattketmo-email-checker)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
