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.8.1(3d ago)2534.6k↑14.7%3[2 PRs](https://github.com/VerifiedJoseph/ntfy-php-library/pulls)1MITPHPPHP ^8.3CI failing

Since Dec 6Pushed 1w 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 3d ago

READMEChangelog (10)Dependencies (18)Versions (72)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.3
- 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

63

—

FairBetter than 99% of packages

Maintenance98

Actively maintained with recent releases

Popularity39

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity80

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 59% 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 ~37 days

Recently: every ~141 days

Total

45

Last Release

3d 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 (4 changes)v1.0.0PHP &gt;=8.0

v4.5.0PHP ^8.1

v4.7.0PHP ^8.2

v4.8.0PHP ^8.3

### 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] (341 commits)")[![VerifiedJoseph](https://avatars.githubusercontent.com/u/20118140?v=4)](https://github.com/VerifiedJoseph "VerifiedJoseph (232 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

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[guanguans/notify

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

687114.3k8](/packages/guanguans-notify)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[bentools/webpush-bundle

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

72290.6k](/packages/bentools-webpush-bundle)

PHPackages © 2026

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