定制 apollopy/flysystem-aliyun-oss 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

apollopy/flysystem-aliyun-oss

最新稳定版本:1.2.1

Composer 安装命令:

composer require apollopy/flysystem-aliyun-oss

包简介

This is a Flysystem adapter for the Aliyun OSS ~2.3

README 文档

README

This is a Flysystem adapter for the Aliyun OSS ~2.3

inspire by aobozhang/aliyun-oss-adapter

Installation

composer require apollopy/flysystem-aliyun-oss

for Laravel

This service provider must be registered.

// config/app.php 'providers' => [ '...', ApolloPY\Flysystem\AliyunOss\AliyunOssServiceProvider::class, ];

edit the config file: config/filesystems.php

add config

'oss' => [ 'driver' => 'oss', 'access_id' => env('OSS_ACCESS_ID','your id'), 'access_key' => env('OSS_ACCESS_KEY','your key'), 'bucket' => env('OSS_BUCKET','your bucket'), 'endpoint' => env('OSS_ENDPOINT','your endpoint'), 'prefix' => env('OSS_PREFIX', ''), // optional ],

change default to oss

 'default' => 'oss'

Use

see Laravel wiki

Plugins

inspire by itbdw/laravel-storage-qiniu

Storage::disk('oss')->putFile($md5_path, '/local_file_path/1.png', ['mimetype' => 'image/png','filename' => 'filename_by_down.png']); Storage::disk('oss')->signedDownloadUrl($path, 3600, 'oss-cn-beijing.aliyuncs.com', true);

IDE Helper

if installed barryvdh/laravel-ide-helper

edit the config file: config/ide-helper.php

'interfaces' => [ '\Illuminate\Contracts\Filesystem\Filesystem' => ApolloPY\Flysystem\AliyunOss\FilesystemAdapter::class, ],

统计信息

  • 总下载量: 125.12k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 94
  • 点击次数: 3
  • 依赖项目数: 4
  • 推荐数: 1

GitHub 信息

  • Stars: 91
  • Watchers: 3
  • Forks: 22
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固