aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/examples/minimal.php
blob: 4ac2560646a130a621e557a2f9c4c03a8c189189 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php

/**
 * This example shows the smallest possible sabre/dav server.
 */
include 'vendor/autoload.php';

$server = new Sabre\DAV\Server([
    new Sabre\DAV\FS\Directory(__DIR__)
]);

/**
 * Ok. Perhaps not the smallest possible. The browser plugin is 100% optional,
 * but it really helps understanding the server.
 */
$server->addPlugin(
    new Sabre\DAV\Browser\Plugin()
);

$server->exec();