Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 669 Bytes

README.md

File metadata and controls

24 lines (19 loc) · 669 Bytes

Flysystem Adapter for Icewind SMB

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.