PHPackages                             n3xt0r/laravel-webdav-server - 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. [File &amp; Storage](/categories/file-storage)
4. /
5. n3xt0r/laravel-webdav-server

ActiveLibrary[File &amp; Storage](/categories/file-storage)

n3xt0r/laravel-webdav-server
============================

A WebDAV server implementation for Laravel based on SabreDAV, with support for Laravel filesystem disks.

1.0.0(2mo ago)0647↓48.7%1MITPHPPHP ^8.4|^8.5CI passing

Since Apr 15Pushed 2mo agoCompare

[ Source](https://github.com/N3XT0R/laravel-webdav-server)[ Packagist](https://packagist.org/packages/n3xt0r/laravel-webdav-server)[ Docs](https://github.com/n3xt0r/laravel-webdav-server)[ GitHub Sponsors](https://github.com/N3XT0R)[ RSS](/packages/n3xt0r-laravel-webdav-server/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (7)Dependencies (10)Versions (11)Used By (1)

Laravel WebDAV Server (SabreDAV + Flysystem)
============================================

[](#laravel-webdav-server-sabredav--flysystem)

[![Latest Version on Packagist](https://camo.githubusercontent.com/20e452905bd87dfe873204ee9b759cdf2fdf3937c0b5e055bebd7dc8413f9d86/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e33787430722f6c61726176656c2d7765626461762d7365727665722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/n3xt0r/laravel-webdav-server)[![Security Rating](https://camo.githubusercontent.com/74c83ab8db119a1453c6e5b8fcd6450e79bab21efb36873c686454be1b7ade27/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d4e33585430525f6c61726176656c2d7765626461762d736572766572266d65747269633d73656375726974795f726174696e67)](https://sonarcloud.io/summary/new_code?id=N3XT0R_laravel-webdav-server)[![Develop Status](https://camo.githubusercontent.com/54339f2892d5a1f34ff6b60f186629e2a5fde56da2aba56b2ba3708128400296/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646576656c6f702d626574612d79656c6c6f773f7374796c653d666c61742d737175617265)](https://github.com/N3XT0R/laravel-webdav-server/tree/develop)[![GitHub Tests Action Status](https://camo.githubusercontent.com/02328ffaf3ec33ab7583d38b5410f8367afb9c0b6f5b73a87092380f9f90f993/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6e33787430722f6c61726176656c2d7765626461762d7365727665722f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/n3xt0r/laravel-webdav-server/actions)[![Read the Docs](https://camo.githubusercontent.com/6d0159014a80281d24f153c91fef32fcacbafb7f788708cf5acce8c1b0ce37ca/68747470733a2f2f72656164746865646f63732e6f72672f70726f6a656374732f6c61726176656c2d7765626461762d7365727665722f62616467652f3f76657273696f6e3d737461626c65)](https://laravel-webdav-server.readthedocs.io/en/stable/?badge=stable)[![Maintainability](https://camo.githubusercontent.com/e80623bdef0bb5320ad9849ebd435874d1bf0d2db3dd95c3063a68825ed1228b/68747470733a2f2f716c74792e73682f67682f4e33585430522f70726f6a656374732f6c61726176656c2d7765626461762d7365727665722f6d61696e7461696e6162696c6974792e737667)](https://qlty.sh/gh/N3XT0R/projects/laravel-webdav-server)[![Code Coverage](https://camo.githubusercontent.com/e82c28778031e6bf2f7e378982d3c84dcfc8355d6c2fb9bf43d29bdf628457c3/68747470733a2f2f716c74792e73682f67682f4e33585430522f70726f6a656374732f6c61726176656c2d7765626461762d7365727665722f636f7665726167652e737667)](https://qlty.sh/gh/N3XT0R/projects/laravel-webdav-server)[![Enterprise Ready](https://camo.githubusercontent.com/ea51619984828ae3d98436b1a7a99afe8ca9bf381cd5e5023452df9d3f3f40ba/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f656e74657270726973652d72656164792d626c75653f7374796c653d666c61742d737175617265)](#stability)

---

A WebDAV server package for Laravel powered by SabreDAV and Laravel Flysystem.

It exposes Laravel storage disks through `/webdav/{space}/{path?}` and maps each request to a configured storage space with a user-scoped root path.

---

[![Laravel WebDAV Server Logo](art/logo.png)](art/logo.png)

Documentation
-------------

[](#documentation)

The full documentation is available on Read the Docs:

👉

The same documentation is also available in this repository:

👉 [docs/](docs/)

Read the Docs provides a structured and navigable version of the same content.

Useful entry points:

- [Getting Started](https://laravel-webdav-server.readthedocs.io/en/stable/getting-started/)
- [Configuration](https://laravel-webdav-server.readthedocs.io/en/stable/configuration/)
- [Path Resolution](https://laravel-webdav-server.readthedocs.io/en/stable/path-resolution/)
- [Events](https://laravel-webdav-server.readthedocs.io/en/stable/events/)
- [Server Customization](https://laravel-webdav-server.readthedocs.io/en/stable/server-customization/)
- [Authentication &amp; Authorization](https://laravel-webdav-server.readthedocs.io/en/stable/authentication/)
- [Architecture](https://laravel-webdav-server.readthedocs.io/en/stable/architecture/)
- [Commands](https://laravel-webdav-server.readthedocs.io/en/stable/commands/)
- [Common Questions](https://laravel-webdav-server.readthedocs.io/en/stable/common-questions/)

The Problem
-----------

[](#the-problem)

- Laravel does not provide a native WebDAV server.
- Many existing packages provide WebDAV clients, for example for Flysystem, but not a server.
- Thin SabreDAV integrations often behave like black boxes inside Laravel.
- Request flow, authentication, storage resolution, and routing are often difficult to inspect or influence.
- Customization often requires replacing large parts of the integration.
- Debugging is difficult because many WebDAV clients return generic errors or no useful diagnostics.
- Client behavior differs noticeably between Windows Explorer, macOS Finder, and WinSCP.
- Windows WebClient is especially strict about `OPTIONS`, `PROPFIND`, and response correctness.

This package integrates WebDAV cleanly into a modern Laravel architecture.

What This Package Provides
--------------------------

[](#what-this-package-provides)

- a WebDAV server for Laravel
- an explicit request pipeline
- Laravel Flysystem integration for storage
- Laravel Gate / policy-based authorization by default
- structured storage mapping through `spaces`
- defined contracts and extension points instead of a black-box runtime
- `WebDavPath` Facade for resolving WebDAV mount URLs and user storage paths from controllers, views, and jobs — without triggering the WebDAV pipeline
- Laravel events for WebDAV mutations such as file and directory create, update, and delete
- events are dispatched after successful operations, so applications can integrate cleanly without internal overrides or hooks
- logging for authentication, routing, storage resolution, and server behavior
- WebDAV behavior compatible with common clients, including Windows WebClient

Quickstart
----------

[](#quickstart)

```
docker compose up --build -d
docker compose exec php composer run serve
```

Default endpoint:

```
http://localhost:8000/webdav/default/

```

Seeded workbench credentials:

```
Username: testuser
Password: password

```

Quick verification:

```
curl -u testuser:password -X PROPFIND http://localhost:8000/webdav/default/
```

For full setup and configuration details, use the documentation links above.

Installation
------------

[](#installation)

```
composer require n3xt0r/laravel-webdav-server
php artisan vendor:publish --tag="laravel-webdav-server-config"
php artisan migrate
```

The package service provider is `N3XT0R\LaravelWebdavServer\WebdavServerServiceProvider`.

Core Concepts
-------------

[](#core-concepts)

- Route shape: `/webdav/{space}/{path?}`
- Authentication: HTTP Basic Auth
- Storage mapping: configured `spaces`
- Authorization: `PathAuthorizationInterface`, backed by Laravel Gate / policies by default

See Read the Docs for the complete request flow, configuration reference, and extension model.

WebDavPath Facade
-----------------

[](#webdavpath-facade)

Resolve WebDAV connection details for users without going through the WebDAV pipeline:

```
use N3XT0R\LaravelWebdavServer\Facades\WebDavPath;
use N3XT0R\LaravelWebdavServer\Contracts\Repositories\AccountRepositoryInterface;

// Mount URL — same for every user of a space
$url = WebDavPath::resolveUrl('default');
// → 'https://your-app.test/webdav/default'

// User-scoped storage path — pass the WebDAV account from the repository
$account = app(AccountRepositoryInterface::class)->findEnabledByUsername($username);
$path = WebDavPath::resolvePath($account, 'default');
// → 'webdav/42'
```

See [Path Resolution](https://laravel-webdav-server.readthedocs.io/en/stable/path-resolution/) for the full reference.

Compatibility Notes
-------------------

[](#compatibility-notes)

- The package implements WebDAV behavior compatible with common clients, including Windows WebClient.
- Windows WebClient depends on correct `OPTIONS` handling, valid `PROPFIND` responses, valid `207 Multi-Status`responses, root collection handling, and `MS-Author-Via: DAV`.
- Prefer `https://`, especially for Windows clients.
- Client-side constraints such as system configuration, local policy, and `http://` versus `https://` still apply.

Developer Commands
------------------

[](#developer-commands)

```
composer run test
composer run lint
composer run test:lint
composer run serve
```

License
-------

[](#license)

MIT License

###  Health Score

45

—

FairBetter than 91% of packages

Maintenance83

Actively maintained with recent releases

Popularity17

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 98.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1 days

Total

8

Last Release

88d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8dbd2b0984ee6f62b6c5c3356b0e0cff2f2afa5c98c4d05272eb4356e080d545?d=identicon)[N3XT0R](/maintainers/N3XT0R)

---

Top Contributors

[![N3XT0R](https://avatars.githubusercontent.com/u/1297846?v=4)](https://github.com/N3XT0R "N3XT0R (370 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (3 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (1 commits)")

---

Tags

filesystemflysystemlaravelsabredavstoragewebdavfilesystemFlysystemlaravelstorageWebDAVN3XT0Rlaravel-storagesabre-davSabreDAVlaravel-webdav-serverwebdav-server

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/n3xt0r-laravel-webdav-server/health.svg)

```
[![Health](https://phpackages.com/badges/n3xt0r-laravel-webdav-server/health.svg)](https://phpackages.com/packages/n3xt0r-laravel-webdav-server)
```

###  Alternatives

[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.8M48](/packages/spatie-laravel-pdf)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.8k](/packages/rawilk-profile-filament-plugin)[harris21/laravel-fuse

Circuit breaker for Laravel queue jobs. Protect your workers from cascading failures.

45955.7k](/packages/harris21-laravel-fuse)[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24957.5k](/packages/vormkracht10-laravel-mails)[lettermint/lettermint-laravel

Official Lettermint driver for Laravel

1190.2k1](/packages/lettermint-lettermint-laravel)[mreduar/s3m

Multipart Uploads using Laravel and AWS S3

174.3k](/packages/mreduar-s3m)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
