No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
build
src
tests
.gitignore
.travis.yml
LICENSE
README.md
codeception.yml
composer.json
composer.lock

README.md

Syncthing REST Client

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');