terzinnorbert / syncthing-php
Syncthing REST API calls implementation
v0.4.2
2021-10-18 19:31 UTC
Requires
- php: >=5.5
- ext-json: *
- guzzlehttp/guzzle: ^6.3
- nesbot/carbon: ^2.0.0
Requires (Dev)
- phpunit/phpunit: ^5
This package is not auto-updated.
Last update: 2024-11-24 05:54:36 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');