PHPackages                             binfotech/smb - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. binfotech/smb

ActiveLibrary

binfotech/smb
=============

php wrapper for smbclient and libsmbclient-php

04PHP

Since Nov 8Pushed 3y ago1 watchersCompare

[ Source](https://github.com/binfotech/SMB)[ Packagist](https://packagist.org/packages/binfotech/smb)[ RSS](/packages/binfotech-smb/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

SMB
===

[](#smb)

[![CI](https://github.com/binfotech/SMB/actions/workflows/ci.yaml/badge.svg)](https://github.com/binfotech/SMB/actions/workflows/ci.yaml)

PHP wrapper for `smbclient` and [`libsmbclient-php`](https://github.com/eduardok/libsmbclient-php)

- Reuses a single `smbclient` instance for multiple requests
- Doesn't leak the password to the process list
- Simple 1-on-1 mapping of SMB commands
- A stream-based api to remove the need for temporary files
- Support for using libsmbclient directly trough [`libsmbclient-php`](https://github.com/eduardok/libsmbclient-php)

Examples
--------

[](#examples)

### Connect to a share

[](#connect-to-a-share)

```
