verifiedjoseph / gotify-api-php
PHP library for interacting with a Gotify server using the Gotify REST-API.
Installs: 3 032
Dependents: 0
Suggesters: 0
Security: 0
Stars: 12
Watchers: 3
Forks: 1
Open Issues: 0
Requires
- php: ^8.2
- ext-curl: *
- ext-json: *
- guzzlehttp/guzzle: ^7.4.5
Requires (Dev)
- phpstan/phpstan: ^2.0
- phpstan/phpstan-deprecation-rules: ^2.0
- phpstan/phpstan-phpunit: ^2.0
- phpunit/phpunit: ^11.4
- squizlabs/php_codesniffer: ^3.7
- dev-main
- v1.10.0
- 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-devcontainer-reorganise-folder
- dev-dependabot/composer/phpstan/phpstan-2.1.0
- dev-dependabot/composer/phpunit/phpunit-11.5.2
- dev-dependabot/composer/squizlabs/php_codesniffer-3.11.2
- dev-dependabot/composer/phpstan/phpstan-phpunit-2.0.3
- dev-devcontainer
- dev-dependabot/docker/dot-devcontainer/dockerfiles/php-8.2.27-alpine3.20
- dev-dependabot/github_actions/codecov/codecov-action-5.1.2
- dev-dependabot/github_actions/shivammathur/setup-php-2.32.0
- dev-dependabot/docker/dot-devcontainer/dockerfiles/composer-2.8.4
- dev-test-plugins
This package is auto-updated.
Last update: 2025-01-01 17:45:12 UTC
README
PHP library for interacting with a Gotify server using the Gotify REST-API.
Supports Gotify server version 2.5 or newer.
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.