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

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

isklv/smb-bundle
================

Samba client for Symfony2

0.1.0(10y ago)05.3k3[1 issues](https://github.com/isklv/smb-bundle/issues)MITPHPPHP &gt;=5.3

Since Dec 7Pushed 10y ago1 watchersCompare

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

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

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": {
        "isklv/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)

```
