verifiedjoseph / ntfy-php-library
PHP library for interacting with a Ntfy server
Installs: 1 287
Dependents: 1
Suggesters: 0
Security: 0
Stars: 7
Watchers: 1
Forks: 1
Open Issues: 1
Requires
- php: >=8.0
- ext-curl: *
- ext-json: *
- guzzlehttp/guzzle: ^7.4
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.11
- phpstan/phpstan: ^1.0
- phpunit/phpunit: ^9.5
- squizlabs/php_codesniffer: ^3.7
This package is auto-updated.
Last update: 2023-04-01 17:01:13 UTC
README
PHP library for sending messages using a ntfy server.
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.