PHPackages                             diego-drese/laravel-storage-migrator - 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. diego-drese/laravel-storage-migrator

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

diego-drese/laravel-storage-migrator
====================================

Laravel package to migrate files between storages preserving paths

00PHP

Since Jan 22Pushed 3mo agoCompare

[ Source](https://github.com/diego-drese/laravel-storage-migrator)[ Packagist](https://packagist.org/packages/diego-drese/laravel-storage-migrator)[ RSS](/packages/diego-drese-laravel-storage-migrator/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Storage Migrator
========================

[](#laravel-storage-migrator)

A Laravel package to migrate files between storage disks preserving paths.

---

🚀 Features
----------

[](#-features)

- Migrate files between any Laravel disks
- Preserve original file paths
- Optional overwrite existing files
- Dry-run mode
- Works with S3, Spaces, MinIO, FTP, Local, etc.

---

📦 Installation
--------------

[](#-installation)

```
  composer require deployfy/laravel-storage-migrator
```

📘 Publish config
----------------

[](#-publish-config)

```
  php artisan vendor:publish --tag=storage-migrator-config
```

⚙️ Configuration .env
---------------------

[](#️-configuration-env)

```
  STORAGE_MIGRATOR_FROM=old_storage
  STORAGE_MIGRATOR_TO=new_storage
```

▶️ Usage Basic migration
------------------------

[](#️-usage-basic-migration)

```
  php artisan storage:migrate old_storage new_storage
```

▶️ Using config defaults
------------------------

[](#️-using-config-defaults)

```
  php artisan storage:migrate
```

▶️ Using Migrate a specific path
--------------------------------

[](#️-using-migrate-a-specific-path)

```
  php artisan storage:migrate --path=tickets/2024
```

▶️ Using Replace existing files
-------------------------------

[](#️-using-replace-existing-files)

```
  php artisan storage:migrate --replace
```

▶️ Using Dry run
----------------

[](#️-using-dry-run)

```
  php artisan storage:migrate --dry-run
```

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance53

Moderate activity, may be stable

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity12

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7375455?v=4)[Diego](/maintainers/diego-drese)[@diego-drese](https://github.com/diego-drese)

---

Top Contributors

[![diego-drese](https://avatars.githubusercontent.com/u/7375455?v=4)](https://github.com/diego-drese "diego-drese (2 commits)")

### Embed Badge

![Health badge](/badges/diego-drese-laravel-storage-migrator/health.svg)

```
[![Health](https://phpackages.com/badges/diego-drese-laravel-storage-migrator/health.svg)](https://phpackages.com/packages/diego-drese-laravel-storage-migrator)
```

###  Alternatives

[knplabs/gaufrette

PHP library that provides a filesystem abstraction layer

2.5k39.8M123](/packages/knplabs-gaufrette)[google/cloud-storage

Cloud Storage Client for PHP

34390.8M125](/packages/google-cloud-storage)[illuminate/filesystem

The Illuminate Filesystem package.

15261.6M2.6k](/packages/illuminate-filesystem)[superbalist/flysystem-google-storage

Flysystem adapter for Google Cloud Storage

26320.6M30](/packages/superbalist-flysystem-google-storage)[creocoder/yii2-flysystem

The flysystem extension for the Yii framework

2931.7M62](/packages/creocoder-yii2-flysystem)[flowjs/flow-php-server

PHP library for handling chunk uploads. Works with flow.js html5 file uploads.

2451.6M15](/packages/flowjs-flow-php-server)

PHPackages © 2026

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