2017 © Pedro Peláez
 

library seaweedfs-client

A SeaweedFS implementation for PHP based on Guzzle

image

tystuyfzand/seaweedfs-client

A SeaweedFS implementation for PHP based on Guzzle

  • Sunday, June 10, 2018
  • by tystuyfzand
  • Repository
  • 1 Watchers
  • 3 Stars
  • 60 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 2 Forks
  • 2 Open issues
  • 7 Versions
  • 757 % Grown

The README.md

SeaweedFS PHP Client

A basic but functional PHP client for seaweedfs, (*1)

Usage

Create an instance of the SeaweedFS\SeaweedFS class, optionally specifying scheme and cache for http/https and Volume lookup caching., (*2)

Example

<?php
$cache = new \SeaweedFS\Cache\FileCache('./cache');

$client = new SeaweedFS\SeaweedFS('127.0.0.1:9333', 'http', $cache);

// Upload a file and get the returned object (SeaweedFS\Models\File)
$file = $client->upload('test1234', 'test.txt');

// Update a file
$client->upload('Testing1234', 'test.txt', $file);

// Retrieve the file contents
$stream = $client->get($file->fid);

echo stream_get_contents($stream) . PHP_EOL;

// Delete a file
$client->delete($file->fid);

// Get a file's URL
echo "URL: " . $file->getFileUrl() . PHP_EOL;

// URLs can also be retrieved manually
$volume = $client->lookup($file->fid);

echo "URL (manual): " . $client->buildVolumeUrl($volume->getPublicUrl(), $file->fid) . PHP_EOL;

Other packages

  • Flysystem-SeaweedFS
  • Laravel-SeaweedFS

The Versions

10/06 2018

dev-master

9999999-dev

A SeaweedFS implementation for PHP based on Guzzle

  Sources   Download

ISC

The Requires

 

by Tyler Stuyfzand

10/06 2018

1.0.5

1.0.5.0

A SeaweedFS implementation for PHP based on Guzzle

  Sources   Download

ISC

The Requires

 

by Tyler Stuyfzand

25/05 2018

v1.0.4

1.0.4.0

A SeaweedFS implementation for PHP based on Guzzle

  Sources   Download

ISC

The Requires

 

by Tyler Stuyfzand

23/05 2018

v1.0.3

1.0.3.0

A SeaweedFS implementation for PHP based on Guzzle

  Sources   Download

ISC

The Requires

 

by Tyler Stuyfzand

23/05 2018

v1.0.2

1.0.2.0

A SeaweedFS implementation for PHP based on Guzzle

  Sources   Download

ISC

The Requires

 

by Tyler Stuyfzand

23/05 2018

v1.0.1

1.0.1.0

A SeaweedFS implementation for PHP based on Guzzle

  Sources   Download

ISC

The Requires

 

by Tyler Stuyfzand

23/05 2018

v1.0.0

1.0.0.0

A SeaweedFS implementation for PHP based on Guzzle

  Sources   Download

ISC

The Requires

 

by Tyler Stuyfzand