Home
Softono

Ntfy Php Library

Open source MIT PHP
25
Stars
3
Forks
0
Issues
1
Watchers
2 months
Last Commit

 About Ntfy Php Library

PHP library for sending push notifications using ntfy

Platforms

Web Self-hosted

Languages

PHP

Need Help Installing Ntfy Php Library?

We provide expert installation service for this software. Our team will install, configure, and secure Ntfy Php Library on your server. plans start at just $30.

Ntfy Php Library

View on GitHub

ntfy-php-library

Latest Version Software License Codecov

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

  • PHP >= 8.3
  • Composer
  • PHP Extensions:

Dependencies

guzzlehttp/guzzle

Changelog

All notable changes to this project are documented in the CHANGELOG.

License

MIT License. Please see LICENSE for more information.