The module provides tools for using samba shares. Allows create multiple samba server settings.

Dependencies

The module depends on SMB Library.

Example

$manager = \Drupal::service('smbclient.server_manager');
$fs = $manager->getServer('test_filestore_id');
$share = $fs->getShare('test_folder');
$file = $share->readFile('test_file.xml');
$content = stream_get_contents($file);

Development assistance is welcome.