Skip to content

munkie/samba

Repository files navigation

Samba PHP stream wrapper

Build Status Coverage Status Code Climate

Fork of SMB4PHP

Requirements

smbclient should be installed (use sudo apt-get install smbclient on ubuntu)

Installation

Add following to your composer.json file:

{
    "require": {
        "munkie/samba": "~1.0"
    },
}

Usage

Register samba stream wrapper:

\Samba\SambaStreamWrapper::register();

You can check if wrapper is already registered using this call:

\Samba\SambaStreamWrapper::is_registered();