PHP library for sending messages using a ntfy server.
Supports ntfy server version 2.
composer require verifiedjoseph/ntfy-php-library
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);
All notable changes to this project are documented in the CHANGELOG.
MIT License. Please see LICENSE for more information.