verifiedjoseph / gotify-api-php
使用Gotify REST-API与Gotify服务器交互的PHP库。
v1.9.0
2024-08-01 16:21 UTC
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-dependabot/docker/dot-devcontainer/dockerfiles/composer-2.7.8
- dev-dependabot/composer/phpstan/phpstan-1.12.0
- dev-dependabot/composer/phpunit/phpunit-10.5.30
- dev-plugin-endpoint-tests
- dev-test-plugins
This package is auto-updated.
Last update: 2024-09-01 15:28:24 UTC
README
使用Gotify服务器并通过Gotify REST-API进行交互的PHP库。
支持Gotify服务器版本2.5.0。
安装
composer require verifiedjoseph/gotify-api-php
快速开始
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, );
文档
要求
依赖
变更日志
本项目所有显著变更均记录在CHANGELOG中。
许可证
MIT许可证。更多信息请参阅LICENSE。