PHPackages                             ndoulgeridis/smb-bundle - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. ndoulgeridis/smb-bundle

ActiveSymfony-bundle[HTTP &amp; Networking](/categories/http)

ndoulgeridis/smb-bundle
=======================

Samba client for Symfony3

0.2.0(7y ago)0201MITPHPPHP &gt;=5.3

Since Dec 7Pushed 7y ago1 watchersCompare

[ Source](https://github.com/ndoulgeridis/smb-bundle)[ Packagist](https://packagist.org/packages/ndoulgeridis/smb-bundle)[ Docs](http://github.com/ndoulgeridis/smb-bundle)[ RSS](/packages/ndoulgeridis-smb-bundle/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

This is just a fork of  to be compatible with Symfony 3+.
==============================================================================================

[](#this-is-just-a-fork-of-httpsgithubcomisklvsmb-bundle-to-be-compatible-with-symfony-3)

SMB-Bundle
==========

[](#smb-bundle)

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)

Installation
------------

[](#installation)

1. **Add as a dependency in your composer file**

    ```
    "require": {
        "ndoulgeridis/smb-bundle":"dev-master"
    }
    ```
2. **Add to your Kernel**

    ```
    // application/ApplicationKernel.php
    public function registerBundles()
    {
        $bundles = array(
            new SMBBundle\SMBBundle()
        );
     }
    ```
3. **(optional) Adjust configurations**

    ```
    # application/config/config.yml
    smb:
        host: localhost
        user: test
        password: test
    ```

Examples
--------

[](#examples)

### Upload a file

[](#upload-a-file)

```
