定制 whatwedo/flysystem-smb 二次开发

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

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

whatwedo/flysystem-smb

最新稳定版本:0.2.0

Composer 安装命令:

composer require whatwedo/flysystem-smb

包简介

smb icewind adapter for Flysystem.

README 文档

README

This Flysystem adapter uses https://github.com/icewind1991/SMB

Installation

composer require whatwedo/flysystem-smb

Usage

use League\Flysystem\Filesystem; use League\Flysystem\Memory\MemoryAdapter; $serverFactory = new \Icewind\SMB\ServerFactory(); $auth = new \Icewind\SMB\BasicAuth('medsuite', 'workgroup', 'medsuite'); $server = $serverFactory->createServer('localhost', $auth); $share = $server->getShare('Medsuite Share'); $filesystem = new Filesystem(new SmbAdapter($share)); $filesystem->write('new_file.txt', 'yay a new text file!'); $contents = $filesystem->read('new_file.txt'); // Explicitly set timestamp (e.g. for testing) $filesystem->write('old_file.txt', 'very old content', ['timestamp' => 13377331]);

Known Issues

  • Visibility is set by using \Icewind\SMB\Wrapped\FileInfo::MODE_HIDDEN
  • function mimeType(string $path) can be buggy

License

This bundle is under the MIT license. See the complete license in the bundle: LICENSE

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固