verifiedjoseph / ntfy-php-library
PHP library for interacting with a Ntfy server
Installs: 8 583
Dependents: 1
Suggesters: 0
Security: 0
Stars: 15
Watchers: 3
Forks: 2
Open Issues: 0
Requires
- php: ^8.1
- ext-curl: *
- ext-json: *
- guzzlehttp/guzzle: ^7.4
Requires (Dev)
- phpstan/phpstan: ^1.0
- phpunit/phpunit: ^10.5
- squizlabs/php_codesniffer: ^3.7
- dev-main
- v4.6.2
- v4.6.1
- v4.6.0
- v4.5.2
- v4.5.1
- v4.5.0
- v4.4.0
- v4.3.0
- v4.2.5
- v4.2.4
- v4.2.3
- v4.2.2
- v4.2.1
- v4.2.0
- v4.1.1
- v4.1.0
- v4.0.4
- v4.0.3
- v4.0.2
- v4.0.1
- v4.0.0
- v3.2.0
- v3.1.10
- v3.1.9
- v3.1.8
- v3.1.7
- v3.1.6
- v3.1.5
- v3.1.4
- v3.1.3
- v3.1.2
- v3.1.1
- v3.1.0
- v3.0.0
- v2.1.1
- v2.1.0
- v2.0.0
- v1.2.0
- v1.1.0
- v1.0.0
- dev-dependabot/composer/squizlabs/php_codesniffer-3.11.0
- dev-upgrade-phpunit
- dev-drop-support-for-php8.1
- dev-phpstan-version-2
This package is auto-updated.
Last update: 2024-11-13 14:51:52 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.