verifiedjoseph / gotify-api-php
PHP library for interacting with a Gotify server using the Gotify REST-API.
v1.7.4
2023-01-11 16:04 UTC
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
- dev-main
- 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-dependabot/github_actions/actions/checkout-3.4.0
- dev-dependabot/composer/phpstan/phpstan-1.10.7
- dev-dependabot/composer/friendsofphp/php-cs-fixer-3.15.1
- dev-replace-httpbin
This package is auto-updated.
Last update: 2023-03-20 15:44:16 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.