WebDAV Adapter

Installation

composer require league/flysystem-webdav:^3.0

This adapter is powered by sabre/dav.

Notice

It’s important to know this adapter does not fully comply with the adapter contract. The difference(s) is/are:

  • Visibility setting or retrieving is not supported.

Usage

<?php

use League\Flysystem\Filesystem;
use League\Flysystem\WebDAV\WebDAVAdapter;
use Sabre\DAV\Client;

include __DIR__ . '/vendor/autoload.php';

$client = new Client([
    'baseUri' => 'http://your-webdav-server.org/',
    'userName' => 'your_user',
    'password' => 'superSecret1234'
]);
$adapter = new WebDAVAdapter($client);
$filesystem = new Filesystem($adapter);