verifiedjoseph/gotify-api-php
最新稳定版本:v1.11.0
Composer 安装命令:
composer require verifiedjoseph/gotify-api-php
包简介
PHP library for interacting with a Gotify server using the Gotify REST-API.
关键字:
README 文档
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.
统计信息
- 总下载量: 7.51k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 12
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-10-29