tystuyfzand/seaweedfs-client 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

tystuyfzand/seaweedfs-client

最新稳定版本:v1.0.7

Composer 安装命令:

composer require tystuyfzand/seaweedfs-client

包简介

A SeaweedFS implementation for PHP based on Guzzle

README 文档

README

A basic but functional PHP client for seaweedfs

Usage

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

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

统计信息

  • 总下载量: 5.99k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 11
  • 点击次数: 3
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 11
  • Watchers: 1
  • Forks: 6
  • 开发语言: PHP

其他信息

  • 授权协议: ISC
  • 更新时间: 2018-05-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固