PHPackages                             limanmys/php-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. limanmys/php-smb

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

limanmys/php-smb
================

php wrapper for smbclient and libsmbclient-php

3.5.1(3y ago)05.2k↓33.3%MITPHPPHP &gt;=8.1

Since Oct 19Pushed 3y agoCompare

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

READMEChangelog (1)Dependencies (5)Versions (2)Used By (0)

SMB
===

[](#smb)

[![CI](https://github.com/icewind1991/SMB/actions/workflows/ci.yaml/badge.svg)](https://github.com/icewind1991/SMB/actions/workflows/ci.yaml)[![codecov](https://camo.githubusercontent.com/d9c595722db69b7d1140fc8b71fac37044d8c138a80f02d53335dfeb8ca9bfe5/68747470733a2f2f636f6465636f762e696f2f67682f69636577696e64313939312f534d422f6272616e63682f6d61737465722f67726170682f62616467652e7376673f746f6b656e3d65546730503436366b36)](https://codecov.io/gh/icewind1991/SMB)

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)

```
