verifiedjoseph / gotify-api-php
PHP library for interacting with a Gotify server using the Gotify REST-API.
Installs: 1 088
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 1
Forks: 2
Open Issues: 1
Requires
- php: >=8.0
- ext-curl: *
- ext-json: *
- guzzlehttp/guzzle: ^7.4.5
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.13
- phpmd/phpmd: ^2.11
- phpstan/phpstan: ^1.0
- phpunit/phpunit: ^9.5
- squizlabs/php_codesniffer: ^3.7
This package is auto-updated.
Last update: 2023-05-27 16:03:37 UTC
README
PHP library for interacting with a Gotify server using the Gotify REST-API.
Supports Gotify server version 2.2.4.
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.