robgridley/flysystem-smb

Flysystem adapter for Icewind SMB.

3.0.0 2023-05-18 13:34 UTC

This package is auto-updated.

Last update: 2024-04-18 15:43:47 UTC


README

Usage

use Icewind\SMB\BasicAuth;
use Icewind\SMB\ServerFactory;
use League\Flysystem\Filesystem;
use RobGridley\Flysystem\Smb\SmbAdapter;

$factory = new ServerFactory();
$auth = new BasicAuth('username', 'domain/workgroup', 'password');
$server = $factory->createServer('host', $auth);
$share = $server->getShare('name');

$filesystem = new Filesystem(new SmbAdapter($share));

Installation

$ composer require robgridley/flysystem-smb

Note

This adapter does not support visibility. Calls to visibility() or setVisibility() throw exceptions and setting visibility via writes, moves, etc. is ignored.