Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 

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

About

Syncthing REST API calls PHP implementation

Topics

Resources

License

Packages

No packages published