mikp/wn-s3browser-plugin 问题修复 & 功能扩展

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

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

mikp/wn-s3browser-plugin

最新稳定版本:v0.3.0

Composer 安装命令:

composer require mikp/wn-s3browser-plugin

包简介

S3 browser plugin for Winter CMS

README 文档

README

Buy me a tree Plant a Tree for Production

S3 object browser plugin containing components for front end views to interact with an s3 bucket like a file browser. This is a plugin for WinterCMS.

Cool Features

  • supports many of the backends that are used in flysystem
  • uses cache to list files
  • the API implements the TUS resumable upload protocol using tus-php, and there is a component to match.
  • middleware can be added to create custom access control

Why?

There is already a media manager and remote filesystem support in WinterCMS.

Although the CMS supports these features, there are not many good examples of components that show files to users. Here are some.

This plugin allows an additional location and method of storing files. It can support unofficial S3 implementations as well as HTTP only S3 services. This can be very useful if you want store files in S3 in a self hosted or non-public configuration. It is intended to allow front-end users to interact with stored files. It provides an API that can be modified with middleware creating application specific access control on files.

For example:

Say that your website hosts a bunch of CAD files that your users can download, but you only want some users to be able to access them. The problem further complicating the issue is that all your CAD files are on your business's NAS - which is not public and the sys-admin didn't bother to set up SSL, add valid certificates, or create root-CAs and maybe there isn't any DNS records either.

By adding a middleware to the s3browser routes only allowed files will display on the downloads page and the insecure s3 storage server is not publicly exposed.

Issues

Admittedly I started this plugin without really understanding the laravel filesystem so I aim to migrate this implementation to use the built in remote storage provided by WinterCMS.

Usage

Just add the various components to views.

API

  • {GET} /api/v1/s3browser/list/{bucket}
  • {POST/GET} /api/v1/s3browser/object
  • {GET} /api/v1/s3browser/download
  • {POST} /api/v1/s3browser/upload
  • {GET} /api/v1/s3browser/zip
  • {GET} /api/v1/s3browser/select
  • {ANY} /api/v1/s3browser/tus

components

  • s3browser - browse a given bucket
  • s3uploader - upload to a given bucket
  • s3query - Select style queries on tabular files (WIP)

Licence

This package is Treeware. If you use it in production, then we ask that you buy the world a tree to thank us for our work. By contributing to the Treeware forest you’ll be creating employment for local families and restoring wildlife habitats.

统计信息

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

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2022-09-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固