Skip to content

tuxmason/Seafile-PHP-Client

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Seafile-PHP-Client

Seafile API Client written in PHP. The client is using https://github.com/rene-s/Seafile-PHP-SDK and offers basic file and folder operations.

Installation

  • Clone this repository
  • Run composer install
  • Run composer dump-autoload -o

Basic usage

An example file can be found in the test folder.

require_once __DIR__ . '/class.seafileapiclient.php';

use Seafile\SeafileAPIClient;

$client = new SeafileAPIClient("https://seacloud.cc");
$client->getAPIToken("[email protected]", "test12345");
$client->initClient();

$lsdata = $client->ls("/");
foreach($lsdata as $path => $details) {
	printf("%s \t-- Name: %s, ID: %s, is encrypted: %s<br>\n", $path, $details["displayname"], $details["id"], $details["encrypted"] ? 'YES' : 'NO');
}

Contributing

Feel free to contribute some code ;)

About

Seafile PHP API Client using https://github.com/rene-s/Seafile-PHP-SDK

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%