2017 © Pedro Peláez
 

library simple-http-storage

php tcp locker and golang server

image

bybzmt/simple-http-storage

php tcp locker and golang server

  • Wednesday, May 16, 2018
  • by bybzmt
  • Repository
  • 1 Watchers
  • 0 Stars
  • 13 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Simple-http-Storage

这是一个简单的HTTP的文件存储服务,这个服务是为跨服务器保存文件而设计的。 仅仅是为了不在php服务器上通过mount挂载远程文件。, (*1)

这样子做会有两点好处: 1. 运维部署会变得简单 2. 程序员会意识到他操作的文件是远程的,不会无意识的在网络上反复下载文件。, (*2)

服务只支持4个操作 * HEAD 读取头信息,判断文件是否存在 * GET 得到文件 * PUT 上传文件 * DELETE 删除文件, (*3)

phpclient

这是一个简单http客户端, (*4)

安装, (*5)

composer require bybzmt/simple-http-storage, (*6)

使用示例:, (*7)

$storage = new SimpleHttpStorage($server, $port, $timeout);
//上传
$storage->put(__FILE__, '/test.txt');
//下载
$storage->get("/test.txt", "./test.txt");
//删除
$storage->delete("/test.txt");
//判断文件是否存在
var_dump($storage->exists("/test.txt"));

The Versions

16/05 2018

dev-master

9999999-dev http://github.com/bybzmt/simple-http-storage

php tcp locker and golang server

  Sources   Download

Apache-2.0

The Requires

  • php >=5.4.0

 

http-storage

16/05 2018

v2.0.0

2.0.0.0 http://github.com/bybzmt/simple-http-storage

php tcp locker and golang server

  Sources   Download

Apache-2.0

The Requires

  • php >=5.4.0

 

http-storage

13/07 2016

v1.0.0

1.0.0.0 http://github.com/bybzmt/simple-http-storage

php tcp locker and golang server

  Sources   Download

Apache-2.0

The Requires

  • php >=5.4.0

 

http-storage