use Icewind\SMB\Server;
use League\Flysystem\Filesystem;
use RobGridley\Flysystem\Smb\SmbAdapter;
$server = new Server('host', 'username', 'password');
$share = $server->getShare('name');
$filesystem = new Filesystem(new SmbAdapter($share));
$ composer require robgridley/flysystem-smb
$ composer update