verifiedjoseph / ntfy-php-library
PHP library for interacting with a Ntfy server
v3.1.0
2022-05-09 19:16 UTC
Requires
- php: >=8.0
- ext-curl: *
- ext-json: *
- guzzlehttp/guzzle: ^7.4
Requires (Dev)
- phpstan/phpstan: ^1.0
- phpunit/phpunit: ^9.5
README
PHP library for sending messages using a ntfy server.
Supports ntfy server version 1.23.0.
Install
composer require verifiedjoseph/ntfy-php-library
Quick Start
require __DIR__ . '/vendor/autoload.php'; use Ntfy\Server; use Ntfy\Message; $server = new Server('https://ntfy.sh/'); $message = new Message($server); $message->topic('mytopic'); $message->title('Hello World'); $message->body('Hello World from ntfy.sh'); $message->priority(Message::PRIORITY_HIGH); $message->send();
Documentation
Requirements
Dependencies
Changelog
All notable changes to this project are documented in the CHANGELOG.
License
MIT License. Please see LICENSE for more information.