PHPackages                             pulli/laravel-nextcloud-webdav-uploader - 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. pulli/laravel-nextcloud-webdav-uploader

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

pulli/laravel-nextcloud-webdav-uploader
=======================================

Chunked WebDAV uploads to Nextcloud for Laravel, with checksum verification and skip-if-unchanged support

v1.0.4(today)06↑2400%MITPHPPHP ^8.4CI passing

Since Jul 23Pushed todayCompare

[ Source](https://github.com/the-pulli/laravel-nextcloud-webdav-uploader)[ Packagist](https://packagist.org/packages/pulli/laravel-nextcloud-webdav-uploader)[ Docs](https://github.com/the-pulli/laravel-nextcloud-webdav-uploader)[ GitHub Sponsors](https://github.com/the-pulli)[ RSS](/packages/pulli-laravel-nextcloud-webdav-uploader/feed)WikiDiscussions main Synced today

READMEChangelog (5)Dependencies (10)Versions (6)Used By (0)

Laravel Nextcloud WebDAV Uploader
=================================

[](#laravel-nextcloud-webdav-uploader)

[![Latest Version on Packagist](https://camo.githubusercontent.com/32e0c0a95bc85de263dbbf0703f2bcf09aa42d6e9718c33c9d8ce99cc1a17241/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f70756c6c692f6c61726176656c2d6e657874636c6f75642d7765626461762d75706c6f616465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/pulli/laravel-nextcloud-webdav-uploader)[![Tests](https://github.com/the-pulli/laravel-nextcloud-webdav-uploader/actions/workflows/run-tests.yml/badge.svg)](https://github.com/the-pulli/laravel-nextcloud-webdav-uploader/actions/workflows/run-tests.yml)[![Total Downloads](https://camo.githubusercontent.com/cc14d3633942c57ca56c41b9df8952c281917fee7f0b921371aa0ecc804d54eb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f70756c6c692f6c61726176656c2d6e657874636c6f75642d7765626461762d75706c6f616465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/pulli/laravel-nextcloud-webdav-uploader)

An Artisan `nextcloud:upload` command for uploading files and folders to Nextcloud over WebDAV. Built on top of [pulli/nextcloud-webdav-uploader](https://github.com/the-pulli/nextcloud-webdav-uploader) — this package just wires its `NextcloudClient` into Laravel's config and console.

Features
--------

[](#features)

- `php artisan nextcloud:upload` — upload single files or whole directories (optionally recursive)
- Automatic chunked uploads for large files, with a Laravel Prompts progress bar
- SHA1 checksum skip-if-unchanged: rerunning against the same destination only transfers what changed
- Post-upload checksum verification, so a corrupted transfer fails loudly instead of silently
- Optional public share link creation, copied to the clipboard (macOS only)
- Desktop notification on completion (macOS only, via [pulli/pullbox](https://github.com/the-pulli/pullbox-php))

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

[](#installation)

You can install the package via composer:

```
composer require pulli/laravel-nextcloud-webdav-uploader
```

The config file is merged automatically — no need to publish it. It reads the same environment variables as the standalone CLI:

```
NEXTCLOUD_URL=https://cloud.example.com
NEXTCLOUD_USERNAME=jane
NEXTCLOUD_PASSWORD=app-password

# Optional overrides
NEXTCLOUD_CHUNK_THRESHOLD=4294967296  # bytes; default ~4 GiB
NEXTCLOUD_CHUNK_SIZE=536870912        # bytes; default 512 MiB
NEXTCLOUD_TIMEOUT=300                 # seconds
```

If you do want to customize it, publish the config file with:

```
php artisan vendor:publish --tag="nextcloud-webdav-uploader-config"
```

Usage
-----

[](#usage)

```
# Upload a single file into /Uploads
php artisan nextcloud:upload --file=/path/to/file.pdf

# Upload into a specific folder (created if missing)
php artisan nextcloud:upload Documents/2026 --file=/path/to/file.pdf

# Upload a directory (its direct files only) as a subfolder of the target folder
php artisan nextcloud:upload Backups --file=/path/to/folder

# ...including nested subdirectories, preserving structure
php artisan nextcloud:upload Backups --file=/path/to/folder --include-subdirs

# Multiple files/folders in one run
php artisan nextcloud:upload Backups --file=/path/a --file=/path/b.txt

# Create (or reuse) a public share link for the target folder afterwards
php artisan nextcloud:upload Shared --file=/path/to/file.pdf --share-dir

# ...or for the uploaded file itself (only valid with exactly one file)
php artisan nextcloud:upload Shared --file=/path/to/file.pdf --share-file
```

Rerunning the same command only re-uploads files whose content actually changed — everything else is reported as `unchanged, skipped`.

### Options

[](#options)

OptionDescription`folder`Target folder in Nextcloud, relative to the user's files root (default: `Uploads`)`--file`, `-f`Local file or directory to upload (repeatable)`--include-subdirs`Recurse into subdirectories of a `--file` directory, preserving structure`--chunk-size`Override the chunk size in MB for files above the chunking threshold`--force-chunk-above`Override the chunking threshold in MB (useful to exercise chunking without a huge test file)`--share-dir`Create (or reuse) a public link share for the target folder, print it, and copy it to the clipboard`--share-file`Create (or reuse) a public link share for the uploaded file, print it, and copy it to the clipboard (exactly one file only)The clipboard copy and the completion notification both shell out to macOS-only tools (`pbcopy`, `osascript`) and are silently skipped on Linux/Windows — the share link is still printed either way.

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Credits
-------

[](#credits)

- [PuLLi](https://github.com/the-pulli)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

44

—

FairBetter than 90% of packages

Maintenance100

Actively maintained with recent releases

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

5

Last Release

0d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c14e16040b5b84e5c91af8c7a39480567d951bfc27673f97d9c75480dbe20b5e?d=identicon)[pulli](/maintainers/pulli)

---

Top Contributors

[![the-pulli](https://avatars.githubusercontent.com/u/112799107?v=4)](https://github.com/the-pulli "the-pulli (10 commits)")

---

Tags

laravelWebDAVuploadnextcloudpulli

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/pulli-laravel-nextcloud-webdav-uploader/health.svg)

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

###  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.

44855.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.

24857.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)
