robgridley/flysystem-smb

Flysystem adapter for Icewind SMB.

1.0.3 2019-09-23 19:00 UTC

This package is auto-updated.

Last update: 2023-02-24 02:46:23 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