Home
Softono

Gotify Api Php

Open source MIT PHP
14
Stars
1
Forks
1
Issues
1
Watchers
2 months
Last Commit

 About Gotify Api Php

PHP library for interacting with a Gotify server using the Gotify REST-API

Platforms

Web Self-hosted

Languages

PHP

Need Help Installing Gotify Api Php?

We provide expert installation service for this software. Our team will install, configure, and secure Gotify Api Php on your server. plans start at just $30.

Gotify Api Php

View on GitHub

gotify-api-php

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.