Skip to content

Commit

Permalink
Updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
robgridley committed Jun 22, 2017
1 parent 0651b79 commit 72ca081
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,22 @@
## Usage
```php
use Icewind\SMB\Server;
use Icewind\SMB\NativeServer;
use League\Flysystem\Filesystem;
use RobGridley\Flysystem\Smb\SmbAdapter;

$server = new Server('host', 'username', 'password');
if (Server::nativeAvailable()) {
$server = new NativeServer('host', 'username', 'password');
} else {
$server = new Server('host', 'username', 'password');
}

$share = $server->getShare('name');

$filesystem = new Filesystem(new SmbAdapter($share));
```

## Installation
```
$ composer require robgridley/flysystem-smb
$ composer update
```

0 comments on commit 72ca081

Please sign in to comment.