verifiedjoseph / ntfy-php-library
PHP library for sending push notifications using ntfy.
Installs: 20 384
Dependents: 1
Suggesters: 0
Security: 0
Stars: 23
Watchers: 1
Forks: 3
Open Issues: 0
pkg:composer/verifiedjoseph/ntfy-php-library
Requires
- php: ^8.2
 - 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: ^11.4
 - squizlabs/php_codesniffer: ^3.7
 
- dev-main
 - v4.7.2
 - v4.7.1
 - v4.7.0
 - v4.6.2
 - v4.6.1
 - v4.6.0
 - v4.5.2
 - v4.5.1
 - v4.5.0
 - v4.4.0
 - v4.3.0
 - v4.2.5
 - v4.2.4
 - v4.2.3
 - v4.2.2
 - v4.2.1
 - v4.2.0
 - v4.1.1
 - v4.1.0
 - v4.0.4
 - v4.0.3
 - v4.0.2
 - v4.0.1
 - v4.0.0
 - v3.2.0
 - v3.1.10
 - v3.1.9
 - v3.1.8
 - v3.1.7
 - v3.1.6
 - v3.1.5
 - v3.1.4
 - v3.1.3
 - v3.1.2
 - v3.1.1
 - v3.1.0
 - v3.0.0
 - v2.1.1
 - v2.1.0
 - v2.0.0
 - v1.2.0
 - v1.1.0
 - v1.0.0
 - dev-dependabot/docker_compose/dot-ci/go-httpbin-9b35f3bcd0
 - dev-use-declarative-users-acl-entries-and-tokens
 
This package is auto-updated.
Last update: 2025-11-03 15:37:42 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.