terzinnorbert/syncthing-php

Syncthing REST API calls implementation

v0.4.2 2021-10-18 19:31 UTC

README

The Client implements the Syncthing provided REST API calls: https://docs.syncthing.net/dev/rest.html

Install

composer require terzinnorbert/syncthing-php

Usage

<?php
require 'vendor/autoload.php';

use SyncthingRest\Client;

$client = Client('http://localhost:8384','abcdabcd');

var_dump($client->getSystemConfig());

Helpers

convertTime($time)

Converts the syncthing provided time to Carbon time

Client::convertTime('2018-05-06T10:21:00.533401659Z');