PHPackages                             verifiedjoseph/ntfy-php-library - 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. verifiedjoseph/ntfy-php-library

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

verifiedjoseph/ntfy-php-library
===============================

PHP library for sending push notifications using ntfy.

v4.7.2(8mo ago)2527.0k↓25.9%31MITPHPPHP ^8.2CI passing

Since Dec 6Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/VerifiedJoseph/ntfy-php-library)[ Packagist](https://packagist.org/packages/verifiedjoseph/ntfy-php-library)[ Docs](https://github.com/VerifiedJoseph/ntfy-php-library)[ RSS](/packages/verifiedjoseph-ntfy-php-library/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (6)Versions (57)Used By (1)

ntfy-php-library
================

[](#ntfy-php-library)

[![Latest Version](https://camo.githubusercontent.com/4f2b24198ba9e12385b6850710f7b70d8f5cad52245efd935c168a46f89b033e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f56657269666965644a6f736570682f6e7466792d7068702d6c6962726172792e7376673f7374796c653d666c61742d737175617265)](https://github.com/VerifiedJoseph/ntfy-php-library/releases/latest)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Codecov](https://camo.githubusercontent.com/311c3aea09b97cc86acac6784eaaa888fc08bce3e39be7e4c5ea94af2ad970d3/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f56657269666965644a6f736570682f6e7466792d7068702d6c6962726172793f7374796c653d666c61742d737175617265)](https://app.codecov.io/gh/VerifiedJoseph/ntfy-php-library/)

PHP library for sending push notifications using [ntfy](https://github.com/binwiederhier/ntfy).

Supports ntfy server version 2.

Install
-------

[](#install)

```
composer require verifiedjoseph/ntfy-php-library

```

Quick Start
-----------

[](#quick-start)

```
require __DIR__ . '/vendor/autoload.php';

use Ntfy\Server;
use Ntfy\Message;
use Ntfy\Client;

$server = new Server('https://ntfy.sh/');

$message = new Message();
$message->topic('mytopic');
$message->title('Hello World');
$message->body('Hello World from ntfy.sh');
$message->priority(Message::PRIORITY_HIGH);

$client = new Client($server);
$client->send($message);
```

Documentation
-------------

[](#documentation)

- [Classes](docs/README.md#Classes)
- [Exceptions](docs/exceptions.md)
- [Code examples](docs/README.md#code-examples)

Requirements
------------

[](#requirements)

- PHP &gt;= 8.2
- Composer
- PHP Extensions:
    - [`JSON`](https://www.php.net/manual/en/book.json.php)
    - [`cURL`](https://secure.php.net/manual/en/book.curl.php)

Dependencies
------------

[](#dependencies)

[`guzzlehttp/guzzle`](https://github.com/guzzle/guzzle/)

Changelog
---------

[](#changelog)

All notable changes to this project are documented in the [CHANGELOG](CHANGELOG.md).

License
-------

[](#license)

MIT License. Please see [LICENSE](LICENSE) for more information.

###  Health Score

55

—

FairBetter than 98% of packages

Maintenance74

Regular maintenance activity

Popularity38

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity76

Established project with proven stability

 Bus Factor1

Top contributor holds 58.5% 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

Every ~32 days

Recently: every ~100 days

Total

43

Last Release

264d ago

Major Versions

v1.2.0 → v2.0.02022-02-01

v2.1.1 → v3.0.02022-05-08

v3.2.0 → v4.0.02022-10-10

PHP version history (3 changes)v1.0.0PHP &gt;=8.0

v4.5.0PHP ^8.1

v4.7.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/818c88a10d2228958c74678a7cb181db7b965204aa882fee2667bcbc8a6658a8?d=identicon)[VerifiedJoseph](/maintainers/VerifiedJoseph)

---

Top Contributors

[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (324 commits)")[![VerifiedJoseph](https://avatars.githubusercontent.com/u/20118140?v=4)](https://github.com/VerifiedJoseph "VerifiedJoseph (225 commits)")[![inverse](https://avatars.githubusercontent.com/u/713525?v=4)](https://github.com/inverse "inverse (5 commits)")

---

Tags

composer-packagenotificationsntfyphpphp-librarypush-notificationspush notificationsNtfyntfy.sh

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/verifiedjoseph-ntfy-php-library/health.svg)

```
[![Health](https://phpackages.com/badges/verifiedjoseph-ntfy-php-library/health.svg)](https://phpackages.com/packages/verifiedjoseph-ntfy-php-library)
```

###  Alternatives

[guanguans/notify

Push notification SDK(AnPush、Bark、Chanify、DingTalk、Discord、Gitter、GoogleChat、IGot、Lark、Mattermost、MicrosoftTeams、NowPush、Ntfy、Push、Pushback、PushBullet、PushDeer、PushMe、Pushover、PushPlus、QQ、RocketChat、ServerChan、ShowdocPush、SimplePush、Slack、Telegram、WeWork、WPush、XiZhi、YiFengChuanHua、ZohoCliq、ZohoCliqWebHook、Zulip).

682104.9k7](/packages/guanguans-notify)[edamov/pushok

PHP client for Apple Push Notification Service (APNs) - Send push notifications to iOS using the new APNs HTTP/2 protocol with token-based (JWT with p8 private key) or certificate-based authentication

4093.0M16](/packages/edamov-pushok)[bentools/webpush-bundle

Send push notifications through Web Push Protocol to your Symfony users.

71274.3k](/packages/bentools-webpush-bundle)[solvecrew/expo-notifications-bundle

Bundle to handle the BE tasks of the push notifications service for the expo react-native Framework.

2055.8k1](/packages/solvecrew-expo-notifications-bundle)[pushpad/pushpad-php

Pushpad PHP Library

26138.1k](/packages/pushpad-pushpad-php)[wijourdil/ntfy-notification-channel

ntfy.sh Notification Channel for Laravel

229.4k](/packages/wijourdil-ntfy-notification-channel)

PHPackages © 2026

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