terzinnorbert / syncthing-php
Syncthing REST API 调用实现
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-09-29 05:14:57 UTC
README
客户端实现了 Syncthing 提供的 REST API 调用:[点击查看](https://docs.syncthing.net/dev/rest.html)(外部链接,不索引,不跟踪,非用户生成内容)
安装
composer require terzinnorbert/syncthing-php
用法
<?php
require 'vendor/autoload.php';
use SyncthingRest\Client;
$client = Client('https://:8384','abcdabcd');
var_dump($client->getSystemConfig());
辅助工具
convertTime($time)
将 Syncthing 提供的时间转换为 Carbon 时间
Client::convertTime('2018-05-06T10:21:00.533401659Z');