verifiedjoseph/ntfy-php-library

PHP library for interacting with a Ntfy server

v1.2.0 2021-12-14 21:54 UTC

README

Latest Version Software License

A PHP library for interacting with a ntfy server.

Install

composer require verifiedjoseph/ntfy-php-library

Quick Start

require __DIR__ . '/vendor/autoload.php';

use Ntfy\Ntfy;
use Ntfy\Server;

$server = new Server('https://ntfy.sh/');
$ntfy = new Ntfy($server);
	
$ntfy->send(
	topic: 'myTopic',
	message: 'Hello World'
);

Documentation

Requirements

  • PHP >= 8.0
  • 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.