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
- dev-main
- v4.8.0
- 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-044047b60e
- dev-Fix-httpbin
- dev-dependabot/docker_compose/dot-ci/ntfy-d0aab65f82
- dev-dependabot/composer/phpstan/phpstan-2.1.56
- dev-VerifiedJoseph-patch-1
- dev-dependabot/docker/dot-devcontainer/workspace/composer-2.10
- dev-dependabot/docker/dot-devcontainer/workspace/php-8.3.31-alpine3.23
- dev-dependabot/github_actions/codecov/codecov-action-6.0.1
- dev-dependabot/github_actions/shivammathur/setup-php-2.37.1
- dev-dependabot/composer/phpunit/phpunit-12.5.27
- dev-dependabot/composer/phpstan/phpstan-2.1.55
- dev-dependabot/composer/guzzlehttp/guzzle-7.10.4
This package is auto-updated.
Last update: 2026-06-03 11:49:35 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.