定制 verifiedjoseph/gotify-api-php 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

Latest Version Software License

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

  • PHP >= 8.3
  • Composer
  • PHP Extensions:

Dependencies

guzzlehttp/guzzle

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

GitHub 信息

  • Stars: 12
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-10-29