PHP code example of jerodev / flysystem-v3-smb-adapter
1. Go to this page and download the library: Download jerodev/flysystem-v3-smb-adapter library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
jerodev / flysystem-v3-smb-adapter example snippets
$server = (new \Icewind\SMB\ServerFactory())->createServer(
$config->host,
new \Icewind\SMB\BasicAuth(
$config->user,
'test',
$config->password
)
);
$share = $server->getShare($config->share);
return new \Jerodev\Flysystem\Smb\SmbAdapter($share, '');