verifiedjoseph / ntfy-php-library
PHP library for sending push notifications using ntfy.
Package info
github.com/VerifiedJoseph/ntfy-php-library
pkg:composer/verifiedjoseph/ntfy-php-library
v4.8.0
2026-04-20 11:31 UTC
Requires
- php: ^8.3
- ext-curl: *
- ext-json: *
- guzzlehttp/guzzle: ^7.4
Requires (Dev)
- phpstan/phpstan: ^2.0
- phpstan/phpstan-deprecation-rules: ^2.0
- phpstan/phpstan-phpunit: ^2.0
- phpunit/phpunit: ^12.5
- squizlabs/php_codesniffer: ^4.0
This package is auto-updated.
Last update: 2026-06-23 22:31:33 UTC
README
PHP library for sending push notifications using ntfy.
Supports ntfy server version 2.
Install
composer require verifiedjoseph/ntfy-php-library
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
Requirements
Dependencies
Changelog
All notable changes to this project are documented in the CHANGELOG.
License
MIT License. Please see LICENSE for more information.