PHPackages                             sudocoder/s3fileuploader - 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. sudocoder/s3fileuploader

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

sudocoder/s3fileuploader
========================

This package makes it easy to handle files on Amazon S3 for multiple systems. You can upload, copy between buckets, check if a file exists, and download files – all by just providing bucket details and file names. Simple file management for smooth data handling.

v1.0.0(2y ago)05MITPHP

Since Feb 22Pushed 2y ago1 watchersCompare

[ Source](https://github.com/asifriaz26/S3FileUploader)[ Packagist](https://packagist.org/packages/sudocoder/s3fileuploader)[ RSS](/packages/sudocoder-s3fileuploader/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Laravel S3 File Management Package
==================================

[](#laravel-s3-file-management-package)

Introduction
------------

[](#introduction)

This Laravel package simplifies file management on Amazon S3 for your application. It provides functionality for uploading, copying between buckets, checking file existence, and downloading files effortlessly.

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

[](#installation)

Install the package using Composer:

```
composer require sudocoder/s3fileuploader
```

Configuration
-------------

[](#configuration)

**Set the following environment variables in your Laravel project's .env file:**

```
AWS_ACCESS_KEY_ID= //Your AWS Access Key ID.
AWS_SECRET_ACCESS_KEY=  //Your AWS Secret Access Key.
AWS_DEFAULT_REGION= //The AWS region, e.g., us-east-1.
AWS_UPLOAD_BUCKET= //Target bucket for file uploads.
AWS_DESTINATION_BUCKET= //Destination bucket for file copying.
AWS_SOURCE_BUCKET= //Source bucket for file operations.
AWS_SOURCE_FOLDER= //Source folder for operations involving folders.
AWS_DESTINATION_FOLDER= //Destination folder for copying files.
AWS_UPLOAD_FILE_FOLDER= //Folder for uploading files.
APP_UPLOAD_IMAGE_FOLDER= //Folder for application-specific file uploads.
AWS_USE_PATH_STYLE_ENDPOINT=  //Set to true if using a path-style S3 endpoint, otherwise false.

```

#### Usage

[](#usage)

##### Upload File

[](#upload-file)

*To upload a file to S3, use the following:*

```
use SudoCoder\S3\S3FileUploader;

// Specify the file path and destination bucket

S3FileUploader::upload('local/path/to/file.txt');

```

##### Copy File Between Buckets

[](#copy-file-between-buckets)

*To copy a file from one bucket to another:*

```
use SudoCoder\S3\S3FileUploader;

// Specify the file name and source/destination buckets and folder if any in env file

S3FileUploader::copyFile('file.txt');

```

##### Check File Existence

[](#check-file-existence)

*To check if a file exists on S3:*

```
use SudoCoder\S3\S3FileUploader;

// Specify the file name and the bucket
if (S3FileUploader::fileExists('file.txt', 'AWS_SOURCE_BUCKET', 'AWS_SOURCE_BUCKET_FOLDER')) {
    // File exists
} else {
    // File does not exist
}

```

##### Download File

[](#download-file)

*To download a file from S3:*

```
use SudoCoder\S3\S3FileUploader;

// Specify the file name and the bucket
S3FileUploader::download('file.txt', 'AWS_SOURCE_BUCKET', 'AWS_SOURCE_BUCKET_FOLDER');

```

Contribution
------------

[](#contribution)

Feel free to contribute to this package by creating issues or submitting pull requests.

License
-------

[](#license)

This package is open-source and available under the MIT License.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 89.5% 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

Unknown

Total

1

Last Release

816d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4e5edee287ab2905f217f34da9d48169653f3ee48a3d4086f84f411615345a86?d=identicon)[asifriaz26](/maintainers/asifriaz26)

---

Top Contributors

[![riazmasif](https://avatars.githubusercontent.com/u/112699762?v=4)](https://github.com/riazmasif "riazmasif (17 commits)")[![asifriaz26](https://avatars.githubusercontent.com/u/147505902?v=4)](https://github.com/asifriaz26 "asifriaz26 (2 commits)")

### Embed Badge

![Health badge](/badges/sudocoder-s3fileuploader/health.svg)

```
[![Health](https://phpackages.com/badges/sudocoder-s3fileuploader/health.svg)](https://phpackages.com/packages/sudocoder-s3fileuploader)
```

###  Alternatives

[league/flysystem-aws-s3-v3

AWS S3 filesystem adapter for Flysystem.

1.6k263.6M790](/packages/league-flysystem-aws-s3-v3)[aws/aws-sdk-php-laravel

A simple Laravel 9/10/11/12/13 service provider for including the AWS SDK for PHP.

1.7k35.6M75](/packages/aws-aws-sdk-php-laravel)[humanmade/s3-uploads

WordPress plugin to store uploads on S3

2.1k2.4M9](/packages/humanmade-s3-uploads)[aws/aws-sdk-php-resources

A resource-oriented API for interacting with AWS services

1381.8M10](/packages/aws-aws-sdk-php-resources)[aws/aws-sdk-php-zf2

Zend Framework 2 Module that allows easy integration the AWS SDK for PHP

104997.5k5](/packages/aws-aws-sdk-php-zf2)[frostealth/yii2-aws-s3

An Amazon S3 component for Yii2

90698.9k5](/packages/frostealth-yii2-aws-s3)

PHPackages © 2026

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