verifiedjoseph / gotify-api-php
PHP library for interacting with a Gotify server using the Gotify REST-API.
Installs: 2 865
Dependents: 0
Suggesters: 0
Security: 0
Stars: 11
Watchers: 3
Forks: 1
Open Issues: 0
Requires
- php: ^8.1
- ext-curl: *
- ext-json: *
- guzzlehttp/guzzle: ^7.4.5
Requires (Dev)
- phpstan/phpstan: ^1.0
- phpunit/phpunit: ^10.5
- squizlabs/php_codesniffer: ^3.7
- dev-main
- v1.9.0
- v1.8.4
- v1.8.3
- v1.8.2
- v1.8.1
- v1.8.0
- v1.7.11
- v1.7.10
- v1.7.9
- v1.7.8
- v1.7.7
- v1.7.6
- v1.7.5
- v1.7.4
- v1.7.3
- v1.7.2
- v1.7.1
- v1.7.0
- v1.6.8
- v1.6.7
- v1.6.6
- v1.6.5
- v1.6.4
- v1.6.3
- v1.6.2
- v1.6.1
- v1.6.0
- v1.5.2
- v1.5.1
- v1.5.0
- v1.4.0
- v1.3.0
- v1.2.0
- v1.0.1
- v1.0.0
- dev-upgrade-phpunit
- dev-drop-support-for-php8.1
- dev-test-plugins
This package is auto-updated.
Last update: 2024-11-13 16:19:23 UTC
README
PHP library for interacting with a Gotify server using the Gotify REST-API.
Supports Gotify server version 2.5.0.
Install
composer require verifiedjoseph/gotify-api-php
Quick Start
require __DIR__ . '/vendor/autoload.php'; use Gotify\Server; use Gotify\Auth\Token; use Gotify\Endpoint\Message; // Set server $server = new Server('https://gotify.example.com/'); // Set application token $auth = new Token('ApplicationTokenHere'); // Create a message class instance $message = new Message($server, $auth); // Send a message $message->create( title: 'hello?', message: 'Hello World', priority: Message::PRIORITY_HIGH, );
Documentation
Requirements
Dependencies
Changelog
All notable changes to this project are documented in the CHANGELOG.
License
MIT License. Please see LICENSE for more information.