rik3sh/rb-file-manager 问题修复 & 功能扩展

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

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

rik3sh/rb-file-manager

Composer 安装命令:

composer require rik3sh/rb-file-manager

包简介

A simple laravel package to manage files in either your public folder or s3 bucket.

README 文档

README

Require this package with composer. It is recommended to only require the package for development.

composer require rik3sh/rb-file-manager

Laravel without auto-discovery:

If you don't use auto-discovery, add the ServiceProvider to the providers array in config/app.php

rik3sh\RBFileManager\FileManagerServiceProvider::class,

Copy the package config to your local config with the publish command:

php artisan vendor:publish --provider="rik3sh\RBFileManager\FileManagerServiceProvider"

The file manager needs a new environment variable named RB_DISK and set it's value to either public or s3 according to your file system needs.

If your preffered file system is s3, then you will need to enter your s3 bucket cerdentials in the default respective environment variables provided by laravel i.e. AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_DEFAULT_REGION and AWS_BUCKET.

Usage

Once installed you can do stuff like this:

use rik3sh\RBFileManager\FileManager;

// Storing a new file
FileManager::storeFile($request->the_file_input_name, 'ANY_FOLDER_NAME_YOU_WANT');

// Replacing/Updating a new file
FileManager::updateFile($request->the_file_input_name, 'ANY_FOLDER_NAME_YOU_WANT', $oldfilename);
// The $oldfilename is optional. If $oldfilename is provided, the new file will replace it.

// Deleting a file
FileManager::deleteFile('ANY_FOLDER_NAME_YOU_WANT', $filename);

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-06-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固