onethirtyone/laravel-s3-migrate

A Laravel package to migrate from local storage to Amazon S3
9,788 6
Install
composer require onethirtyone/laravel-s3-migrate
Latest Version:v2.2
PHP:^7.2.5|^8.0
Laravel:7 · 8
Older releases:6
License:MIT
Last Updated:Feb 1, 2023
Links: GitHub  ·  Packagist
Maintainer: 131Studios

Laravel S3 File Migration

Build Status StyleCI

Migrate files in local storage to an AWS S3 Bucket

Installation

Install with composer

composer require onethirtyone/laravel-s3-migrate

Publish the config

php artisan vendor:publish --tag=s3migrate-config

Usage

in config/s3migrate.php set your configuration options

Run the artisan command

php artisan onethirtyone:s3-migrate {--force : Migrates without confirmation prompt}

This will migrate all files in your selected local disks to S3.

When the migration is complete a OneThirtyOne\S3Migration\Events\S3MigrationCompleted event will be fired. The event will receive a collection of Illuminate\Support\File files. These are the files that have been migrated.

You should listen for this event to perform actions locally such as updating a database table with the new S3 image path or delete the local storage files.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

Related Packages

r3k4/ck-storage

A simple cloudkilat storage s3 class for laravel

88 1
ibox/uploader

File uploader for laravel framework.

45 0
czim/file-handling

File Handling Helper

895,644 15
customergauge/minio

Faking S3 storage with Minio

25,146 3

Version History

Version Released PHP Laravel License
v2.2 ^7.2.5|^8.0 ^7.0|^8.0 MIT
v2.1 ^7.2.5|^8.0 ^7.0|^8.0 MIT
2.0 ^7.2.5|^8.0 ^7.0|^8.0 MIT
1.0 ^7.2.5 ^6.0|^7.0 MIT